Share via


Set-HcsWebProxy

Set-HcsWebProxy

Sets the web proxy configuration.

Syntax

Parameter Set: Default
Set-HcsWebProxy [-Authentication <WebProxyAuthType> ] [-ConnectionURI <String> ] [-Force] [-Password <SecureString> ] [-Username <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detaillierte Beschreibung

The Set-HcsWebProxy cmdlet sets the web proxy configuration for this device. After you set the configuration, you must enable the web proxy by using the Enable-HcsWebProxy cmdlet.

Parameter

-Authentication<WebProxyAuthType>

Specifies the type of authentication to use. Die folgenden Werte für diesen Parameter sind zulässig:

-- None
-- Basic
-- NTLM

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-ConnectionURI<String>

Specifies the URI for the web proxy server.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Force

Erzwingt, dass der Befehl ohne Benutzerbestätigung ausgeführt wird.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Password<SecureString>

Specifies a password. Specify a secure string for this parameter. The cmdlet uses this password to connect to the web proxy.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Username<String>

Specifies a user name for the web proxy.

Aliasse

Keiner

Erforderlich?

false

Position?

named

Standardwert

Keiner

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-Confirm

Sie werden vor dem Ausführen des Cmdlets zur Bestätigung aufgefordert.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

-WhatIf

Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.

Erforderlich?

false

Position?

named

Standardwert

falsch

Pipelineeingaben akzeptieren?

false

Platzhalterzeichen akzeptieren?

false

<CommonParameters>

Dieses Cmdlet unterstützt die allgemeinen Parameter: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, -OutVariable. Weitere Informationen finden Sie unter about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Eingaben

Der Eingabetyp ist der Typ der Objekte, die über die Pipeline an das Cmdlet übergeben werden können.

Ausgaben

Der Ausgabetyp ist der Typ der Objekte, die vom Cmdlet ausgegeben werden.

  • Microsoft.HCS.Management.Platform.Support.WebProxyInfo

    The WebProxyInfo object has the following properties:

    -- String ConnectionURI
    -- WebProxyAuthType Authentication
    -- String Username
    -- IsEnabled

Beispiele

Example 1: Configure a web proxy

This command configures the web proxy that has the URI http://myproxy:8080. The proxy uses no authentication.

PS C:\> Set-HcsWebProxy -Authentication None -ConnectionURI "http://myproxy:8080"

Example 2: Configure a web proxy with NTLM authentication

This command configures the web proxy to use NTLM authentication for user named ENarvaez.

PS C:\> Set-HcsWebProxy -Authentication NTLM -ConnectionURI "http://myproxy:8080" -Username "ENarvaez"

Example 3: Configure a web proxy with Basic authentication

This command configures the web proxy to use Basic authentication with no password.

PS C:\> Set-HcsWebProxy -Authentication Basic -ConnectionURI "http://myproxy:8080" -Password $Null -Username "ENarvaez" 

Verwandte Themen

Disable-HcsWebProxy

Enable-HcsWebProxy

Get-HcsWebProxy