Set-HcsWebProxy
Set-HcsWebProxy
Sets the web proxy configuration.
Sintaxis
Parameter Set: Default
Set-HcsWebProxy [-Authentication <WebProxyAuthType> ] [-ConnectionURI <String> ] [-Force] [-Password <SecureString> ] [-Username <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
Descripción detallada
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.
Parámetros
-Authentication<WebProxyAuthType>
Specifies the type of authentication to use. Los valores aceptables para este parámetro son los siguientes:
-- None
-- Basic
-- NTLM
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-ConnectionURI<String>
Specifies the URI for the web proxy server.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Force
Fuerza que el comando se ejecute sin pedir confirmación al usuario.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Password<SecureString>
Specifies a password. Specify a secure string for this parameter. The cmdlet uses this password to connect to the web proxy.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Username<String>
Specifies a user name for the web proxy.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-Confirm
Solicita confirmación antes de ejecutar el cmdlet.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-WhatIf
Muestra lo que sucedería si se ejecutara el cmdlet. El cmdlet no se ejecuta.
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
falso |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
Microsoft.HCS.Management.Platform.Support.WebProxyInfo
The WebProxyInfo object has the following properties:
-- String ConnectionURI
-- WebProxyAuthType Authentication
-- String Username
-- IsEnabled
Ejemplos
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"