< Back

Save-OSDDownload

Sat Jan 18, 2020 6:11 pm

NAME Save-OSDDownload



SYNOPSIS

Downloads a file from the internet





SYNTAX

Save-OSDDownload [-SourceUrl] <String[]> [-DownloadFolder <String>] [-Overwrite] [-BitsTransfer]

[<CommonParameters>]





DESCRIPTION

Downloads a file from the internet. Success returns $true





PARAMETERS

-SourceUrl <String[]>

URL of the file to download



Required? true

Position? 1

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-DownloadFolder <String>

Destination Folder



Required? false

Position? named

Default value "$env:TEMP\\OSD"

Accept pipeline input? false

Accept wildcard characters? false



-Overwrite [<SwitchParameter>]

Overwrite the file if it exists already

The default action is to skip the download



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-BitsTransfer [<SwitchParameter>]

Download the file using BITS-Transfer

Interactive Login required



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





19.10.25 David Segura @SeguraOSD





RELATED LINKS

https://osd.osdeploy.com/module/functio ... sddownload