< Back

Get-RemoteString

Mon Jan 13, 2020 1:32 am

NAME Get-RemoteString



SYNOPSIS

Download the content from url using specified proxy settings.





SYNTAX

Get-RemoteString [[-url] <String>] [[-ProxyLocation] <Uri>] [[-ProxyCredential] <PSCredential>] [-IgnoreProxy]

[<CommonParameters>]





DESCRIPTION

Helper function to Download the content from a url

using specified proxy settings.





PARAMETERS

-url <String>

URL of the file to download.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProxyLocation <Uri>

Proxy uri to use for the download.



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ProxyCredential <PSCredential>

Credential to use for authenticating to the proxy.

By default it will try to load cached credentials.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-IgnoreProxy [<SwitchParameter>]

Bypass the proxy for this request.



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



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



PS C:\\>Get-RemoteString -Url https://chocolatey.org/install.ps1















RELATED LINKS