Set-HcsWebProxy
Set-HcsWebProxy
Sets the web proxy configuration.
구문
Parameter Set: Default
Set-HcsWebProxy [-Authentication <WebProxyAuthType> ] [-ConnectionURI <String> ] [-Force] [-Password <SecureString> ] [-Username <String> ] [-Confirm] [-WhatIf] [ <CommonParameters>]
자세한 설명
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.
매개 변수
-Authentication<WebProxyAuthType>
Specifies the type of authentication to use. 이 매개 변수에 허용되는 값은 다음과 같습니다.
-- None
-- Basic
-- NTLM
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-ConnectionURI<String>
Specifies the URI for the web proxy server.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Force
사용자 확인을 요구하지 않고 명령을 실행합니다.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Password<SecureString>
Specifies a password. Specify a secure string for this parameter. The cmdlet uses this password to connect to the web proxy.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Username<String>
Specifies a user name for the web proxy.
별칭 |
없음 |
필수 여부 |
false |
위치 |
named |
기본값 |
없음 |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
필수 여부 |
false |
위치 |
named |
기본값 |
false |
파이프라인 입력 적용 여부 |
false |
와일드카드 문자 허용 여부 |
false |
<CommonParameters>
이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(https://go.microsoft.com/fwlink/p/?LinkID=113216).
입력
입력 유형은 cmdlet에 파이프할 수 있는 개체의 유형입니다.
출력
출력 유형은 cmdlet이 내보내는 개체의 유형입니다.
Microsoft.HCS.Management.Platform.Support.WebProxyInfo
The WebProxyInfo object has the following properties:
-- String ConnectionURI
-- WebProxyAuthType Authentication
-- String Username
-- IsEnabled
예제
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"