rasdial
SafeDial VPN from CLI
rasdial "<VPN名>" [user pass]
Connects/disconnects built-in VPN entries from the CLI; bare rasdial shows current state.
Examples
rasdial "社内VPN" /disconnectHang up the VPN
Syntax
rasdial ["entry" [user [pass]]] / rasdial "entry" /disconnect
Before you run it
Avoid plaintext credentials in scripts.
Related commands
- netshNetwork shell
- show ipsec saIPsec SA status
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store