windows 10 command line to change some VPN name - "Test1" to "Test2"
- User
windows 10 command line to change some VPN name - "Test1" to "Test2"
- Assistant
To change the name of a VPN connection from "Test1" to "Test2" in Windows 10 using the Command Line, you'll have to use PowerShell rather than Command Prompt, as the native command-line tool (netsh) doesn't support renaming VPN connections directly. Here's how you can do it using PowerShell:
-
Open PowerShell as Administrator
- On the taskbar, type "PowerShell" into the search box.
- Right-click on "Windows PowerShell" in the search results, and then select "Run as administrator".
-
Rename the VPN Connection
- In the PowerShell window, type the following command and then press Enter:
powershellSet-VpnConnection -Name "Test1" -NewName "Test2"
This command uses the
Set-VpnConnectioncmdlet to change the name of the VPN connection from "Test1" to "Test2". -