Il primo comando ottiene un gateway di rete denominato VMGateway01 e quindi lo archivia nella variabile $VmNetworkGateway.
Il secondo comando ottiene una connessione VPN nel gateway in $VmNetworkGateway e quindi lo archivia nella variabile $VPNConnection.
Il terzo comando ottiene un account RunAs e quindi lo archivia nella variabile $RunAsAccount.
Questo account viene usato per modificare la connessione VPN.
Il comando finale modifica la connessione VPN in $VPNConnection.
Specifica nuovi valori per diversi parametri.
Parametri
-AuthenticationMethod
Specifica un metodo di autenticazione VPN (Virtual Private Network).
I valori validi sono: PSKOnly, MachineCertificates.
Type:
VPNAuthenticationMethod
Accepted values:
PSKOnly, MachineCertificates
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-AuthenticationTransformConstants
Specifica una costante di trasformazione VPN (Virtual Private Network).
I valori validi sono:
Specifica un indirizzo IPv4 (Generic Route Encapsulation).
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-GREIPv6Address
Specifica un indirizzo GRE IPv6.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-GREKey
Specifica una chiave GRE.
Type:
UInt32
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-GRETunnel
Indica che questo cmdlet usa un tunnel GRE.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-IntegrityCheckMethod
Specifica un metodo di verifica dell'integrità della rete privata virtuale (VPN).
I valori validi sono:
MD5
SHA1
SHA256
SHA384
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
Specifica che lo stato del processo viene monitorato e archiviato nella variabile indicata in questo parametro.
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
Specifica, in kbps, la larghezza di banda in ingresso massima.
Type:
UInt64
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-MaximumBandwidthOutboundKbps
Specifica, in kbps, la larghezza di banda in uscita massima.
Type:
UInt64
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-Name
Specifica il nome di un oggetto di VMM.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-NextHopNetwork
Specifica un oggetto VMNetwork .
Type:
VMNetwork
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-OnBehalfOfUser
Specifica un nome utente.
Questo cmdlet opera per conto dell'utente che specifica questo parametro.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-OnBehalfOfUserRole
Specifica un ruolo utente.
Per ottenere un ruolo utente, usare il cmdlet Get-SCUserRole .
Questo cmdlet opera per conto del ruolo utente specificato da questo parametro.
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
Specifica un gruppo di reti private virtuali (VPN) Perfect Forward Secret (PFS).
I valori validi sono:
Specifica l'ID del suggerimento prestazioni e ottimizzazione risorse (suggerimento PRO) che ha attivato questa azione.
Questo parametro consente di controllare i suggerimenti 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
Indica che il processo viene eseguito in modo asincrono in modo che il controllo restituisca immediatamente alla shell dei comandi.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-Secret
Specifica un account RunAs.
Per ottenere un account RunAs, usare il cmdlet Get-SCRunAsAccount .
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
Specifica un indirizzo VPN di destinazione in formato IPv4.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-TargetIPv6VPNAddress
Specifica un indirizzo VPN di destinazione in formato IPv6.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-VMMServer
Specifica un oggetto server Virtual Machine Manager.
Type:
ServerConnection
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
True
Accept wildcard characters:
False
-VPNConnection
Specifica un oggetto di connessione VPN (Virtual Private Network).
Per ottenere un oggetto connessione VPN, usare il cmdlet Get-SCVPNConnection .