Set-SCVPNConnection
Syntax
Set-SCVPNConnection
[-VMMServer <ServerConnection>]
[-VPNConnection] <VPNConnection>
[-Name <String>]
[-Description <String>]
[-TargetIPv4VPNAddress <String>]
[-TargetIPv6VPNAddress <String>]
[-EncryptionMethod <VPNEncryptionMethod>]
[-IntegrityCheckMethod <VPNIntegrityCheckMethod>]
[-CipherTransformConstants <VPNCipherTransformConstants>]
[-AuthenticationTransformConstants <VPNAuthenticationTransformConstants>]
[-PFSGroup <VPNPFSGroup>]
[-DHGroup <VPNDHGroup>]
[-AuthenticationMethod <VPNAuthenticationMethod>]
[-Secret <RunAsAccount>]
[-Certificate <ClientCertificate>]
[-IPSecMainSALifeTimeSeconds <UInt32>]
[-IPSecMainSALifeTimeKiloBytes <UInt32>]
[-IPSecQuickSALifeTimeSeconds <UInt32>]
[-IPSecQuickSALifeTimeKiloBytes <UInt32>]
[-IPSecIdleDisconnectSeconds <UInt32>]
[-LocalTrafficSelectors <TrafficSelector[]>]
[-RemoveLocalTrafficSelectors]
[-RemoteTrafficSelectors <TrafficSelector[]>]
[-RemoveRemoteTrafficSelectors]
[-Status <GatewayConnectionStatus>]
[-MaximumBandwidthInboundKbps <UInt64>]
[-MaximumBandwidthOutboundKbps <UInt64>]
[-RemoveMaximumBandwidthInbound]
[-RemoveMaximumBandwidthOutbound]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Set-SCVPNConnection
[-VMMServer <ServerConnection>]
[-VPNConnection] <VPNConnection>
[-NextHopNetwork <VMNetwork>]
[-Name <String>]
[-Description <String>]
[-Status <GatewayConnectionStatus>]
[-MaximumBandwidthInboundKbps <UInt64>]
[-MaximumBandwidthOutboundKbps <UInt64>]
[-RemoveMaximumBandwidthInbound]
[-RemoveMaximumBandwidthOutbound]
[-IPAddresses <String[]>]
[-PeerIPAddresses <String[]>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Set-SCVPNConnection
[-VMMServer <ServerConnection>]
[-VPNConnection] <VPNConnection>
[-Name <String>]
[-Description <String>]
[-TargetIPv4VPNAddress <String>]
[-TargetIPv6VPNAddress <String>]
[-Status <GatewayConnectionStatus>]
[-MaximumBandwidthInboundKbps <UInt64>]
[-MaximumBandwidthOutboundKbps <UInt64>]
[-RemoveMaximumBandwidthInbound]
[-RemoveMaximumBandwidthOutbound]
[-GRETunnel]
[-GREKey <UInt32>]
[-GREIPv4Address <String>]
[-GREIPv6Address <String>]
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-OnBehalfOfUser <String>]
[-OnBehalfOfUserRole <UserRole>]
[<CommonParameters>]
Description
Set-SCVPNConnection cmdlet은 VPN(가상 사설망) 연결의 속성을 업데이트합니다.
예제
예제 1: VPN 연결 수정
PS C:\> $VmNetworkGateway = Get-SCVMNetworkGateway -Name "VMGateway01"
PS C:\> $VPNConnection = Get-SCVPNConnection -VMNetworkGateway $VmNetworkGateway -Name "VPN01"
PS C:\> $RunAsAccount = Get-SCRunAsAccount -ID "972567d5-96ad-472e-9790-831bae5fd69c"
PS C:\> $VpnConnection = Set-SCVPNConnection -AuthenticationMethod "PSKOnly" -AuthenticationTransformConstants "SHA196" -CipherTransformConstants "AES256" -DHGroup "Group2" -EncryptionMethod "AES256" -IntegrityCheckMethod "SHA1" -PFSGroup "PFS2048" -Name "IPSec" -TargetIPv4VPNAddress "100.100.100.200" -VPNConnection $VPNConnection -Secret $RunAsAccount
첫 번째 명령은 VMGateway01이라는 네트워크 게이트웨이를 가져오고 $VmNetworkGateway 변수에 저장합니다.
두 번째 명령은 $VmNetworkGateway 게이트웨이에서 VPN 연결을 가져오고 $VPNConnection 변수에 저장합니다.
세 번째 명령은 실행 계정을 가져오고 $RunAsAccount 변수에 저장합니다.
이 계정은 VPN 연결을 수정하는 데 사용됩니다.
최종 명령은 $VPNConnection VPN 연결을 수정합니다.
여러 매개 변수에 대한 새 값을 지정합니다.
매개 변수
-AuthenticationMethod
VPN(가상 사설망) 인증 방법을 지정합니다.
유효한 값은 PSKOnly, MachineCertificates입니다.
Type: | VPNAuthenticationMethod |
Accepted values: | PSKOnly, MachineCertificates |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
VPN(가상 사설망) 변환 상수 지정
유효한 값은 다음과 같습니다.
- SHA256128
- MD596
- SHA196
- GCMAES128
- GCMAES192
- GCMAES256
Type: | VPNAuthenticationTransformConstants |
Accepted values: | SHA256128, MD596, SHA196, GCMAES128, GCMAES192, GCMAES256, SHA256, None |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Certificate
보안 인증서 개체를 지정합니다.
Type: | ClientCertificate |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
가상 프라이빗 네트워크 암호 변환 상수 지정
유효한 값은 다음과 같습니다.
- DES
- DES3
- AES128
- AES192
- AES256
- GCMAES128
- GCMAES192
- GCMAES256
Type: | VPNCipherTransformConstants |
Accepted values: | DES, DES3, AES128, AES192, AES256, GCMAES128, GCMAES192, GCMAES256, None |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Description
VPN 연결에 대한 설명을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DHGroup
VPN(가상 사설망) Diffie-Hellman(DH) 그룹을 지정합니다.
유효한 값은 다음과 같습니다.
- None
- Group1
- Group2
- Group14
- ECP256
- ECP384
- Group24
Type: | VPNDHGroup |
Accepted values: | None, Group1, Group2, Group14, ECP256, ECP384, Group24 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EncryptionMethod
VPN(가상 사설망) 암호화 방법을 지정합니다.
유효한 값은 다음과 같습니다.
- DES
- DES3
- AES128
- AES192
- AES256
Type: | VPNEncryptionMethod |
Accepted values: | DES, DES3, AES128, AES192, AES256, CBCDES, CBCDES3, AES128CBC, AES192CBC, AES256CBC, GCMAES128, GCMAES192, GCMAES256 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GREIPv4Address
GRE(일반 경로 캡슐화) IPv4 주소를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GREIPv6Address
GRE IPv6 주소를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GREKey
GRE 키를 지정합니다.
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-GRETunnel
이 cmdlet이 GRE 터널을 사용한다는 것을 나타냅니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IntegrityCheckMethod
VPN(가상 사설망) 무결성 검사 방법을 지정합니다.
유효한 값은 다음과 같습니다.
Type: | VPNIntegrityCheckMethod |
Accepted values: | MD5, SHA1, SHA256, SHA384, SHA196 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPAddresses
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPSecIdleDisconnectSeconds
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPSecMainSALifeTimeKiloBytes
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPSecMainSALifeTimeSeconds
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPSecQuickSALifeTimeKiloBytes
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IPSecQuickSALifeTimeSeconds
Type: | UInt32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
작업 진행률을 추적하여 이 매개 변수로 이름이 지정된 변수에 보관하도록 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-LocalTrafficSelectors
Type: | TrafficSelector[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumBandwidthInboundKbps
최대 인바운드 대역폭을 kbps 단위로 지정합니다.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaximumBandwidthOutboundKbps
최대 아웃바운드 대역폭을 kbps 단위로 지정합니다.
Type: | UInt64 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
VMM 개체의 이름을 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NextHopNetwork
VMNetwork 개체를 지정합니다.
Type: | VMNetwork |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUser
사용자 이름을 지정합니다.
이 cmdlet은 이 매개 변수가 지정하는 사용자를 대신하여 작동합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OnBehalfOfUserRole
사용자 역할을 지정합니다.
사용자 역할을 가져오려면 Get-SCUserRole cmdlet을 사용합니다.
이 cmdlet은 이 매개 변수가 지정하는 사용자 역할을 대신하여 작동합니다.
Type: | UserRole |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PeerIPAddresses
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PFSGroup
VPN(가상 사설망) PFS(Perfect Forward Secrecy) 그룹을 지정합니다.
유효한 값은 다음과 같습니다.
- None
- PFS1
- PFS2
- PFS2048
- ECP256
- ECP384
- PFSMM
- PFS24
Type: | VPNPFSGroup |
Accepted values: | None, PFS1, PFS2, PFS2048, ECP256, ECP384, PFSMM, PFS24, PFS14 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PROTipID
이 작업을 트리거한 PRO 팁(성능 및 리소스 최적화 팁)의 ID를 지정합니다.
이 매개 변수를 사용하면 PRO 팁을 감사할 수 있습니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoteTrafficSelectors
Type: | TrafficSelector[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveLocalTrafficSelectors
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveMaximumBandwidthInbound
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveMaximumBandwidthOutbound
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RemoveRemoteTrafficSelectors
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
컨트롤이 명령 셸로 즉시 반환되도록 작업이 비동기적으로 실행됨을 나타냅니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Secret
실행 계정을 지정합니다.
실행 계정을 가져오려면 Get-SCRunAsAccount cmdlet을 사용합니다.
Type: | RunAsAccount |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Status
Type: | GatewayConnectionStatus |
Accepted values: | Error, Enabled, Disabled |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetIPv4VPNAddress
대상 VPN 주소를 IPv4 형식으로 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetIPv6VPNAddress
대상 VPN 주소를 IPv6 형식으로 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
VMM 서버 개체를 지정합니다.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VPNConnection
VPN(가상 사설망) 연결 개체를 지정합니다.
VPN 연결 개체를 가져오려면 Get-SCVPNConnection cmdlet을 사용합니다.
Type: | VPNConnection |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |