Author | external help file | Module Guid | Module Name | online version | schema |
---|---|---|---|---|---|
Paul Boyer |
psvault-Utilities-help.xml |
0ba23f80-06be-4ccc-a218-05969d5e5b5e |
psvault-Utilities |
2.0.0 |
Disables a VPN connection given the appropriate environmental criteria is met.
Disable-VPN [-WiFi] [<CommonParameters>]
Checks if the PC is connected to Ethernet, and if the IP address is on the right LAN. If both conditions are met, the VPN is disabled (optionally Wi-Fi turned off too).
Disable-VPN
Disables the VPN connection.
Disable-VPN -WiFi
Disables the VPN connection and turns off Wi-Fi.
Switch to disable Wi-Fi.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Author: Paul Boyer Date: 07-07-2021