< Back

Get-FileFromWeb

Sat Jan 18, 2020 7:55 pm

NAME Get-FileFromWeb



SYNOPSIS

Download a file via powershell





SYNTAX

Get-FileFromWeb [-FileUrl] <String> [[-SaveAs] <String>] [[-Location] <String>] [<CommonParameters>]





DESCRIPTION

Default output location to user desktop





PARAMETERS

-FileUrl <String>



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SaveAs <String>



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Location <String>



Required? false

Position? 3

Default value $env:USERPROFILE + "\\Desktop"

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



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-FileFromWeb -FileUrl http://location/file.extension -SaveAs FileName -Location















RELATED LINKS