Share via


Enable-HcsWebProxy

Enable-HcsWebProxy

Enables the web proxy.

Sintaxe

Enable-HcsWebProxy [ <CommonParameters>]

Descrição detalhada

The Enable-HcsWebProxy cmdlet enables the web proxy. The cmdlet applies all existing configuration settings for the proxy.

Parâmetros

<CommonParameters>

Esse cmdlet dá suporte a parâmetros comuns: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer e -OutVariable. Para obter mais informações, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Entradas

O tipo de entrada é o tipo dos objetos que você pode canalizar para o cmdlet.

Saídas

O tipo de saída é o tipo de objeto emitido pelo cmdlet.

  • Microsoft.HCS.Management.Platform.Support.WebProxyInfoFull

    The WebProxyInfo object has the following properties:

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

    The WebProxyAuthType enumeration has the following values:

    -- None = proxy_auth_mech_type.AUTH_MECHANISM_NONE
    -- Basic = proxy_auth_mech_type.AUTH_MECHANISM_BASIC
    -- NTLM = proxy_auth_mech_type.AUTH_MECHANISM_NTLM

Exemplos

Example 1: Enable the web proxy

This command enables the web proxy for your device. The command reverts to previous web proxy settings. If you have not set valid values for the web proxy for this device, the command may fail. Use the Set-HcsWebProxy cmdlet to set up the web proxy.

PS C:\> Enable-HcsWebProxy

Tópicos relacionados

Disable-HcsWebProxy

Get-HcsWebProxy

Set-HcsWebProxy