I’m pretty new using the command prompt but I’m trying to learn and I’m struggling like crazy trying to connect using windows command prompt
This is what I start with
cd "C:\Program Files\Proton technologies"
Then when I put in the connect portion I’ve seen on the website "protonvpn-cli -c -f
But when I do that pe variations it just says "is not recognized as an internal or external command, operable program or batch file
Can anyone please please help me
what are you trying to do?
if you don’t need the app:
Can do it this way : https://protonvpn.com/support/windows-10-ikev2-vpn-setup/
I know you can do it in Linux. I don’t know if they have command prompt windows. You can probably do windows VPN and bat files switch them.
windows key + run
rasphone
Put all your connections “workplace networks”
Browser open up https://protonvpn.com/download/ProtonVPN_ike_root.der
Install Certificate
local machine
place all certificates in the following store
trusted root certification authority
:: .bat file
@echo off cls :start
rasdial "VPN Connection 1" user pass
timeout /t 60000
rasdial "VPN Connection 2" user pass
timeout /t 60000 rasdial "VPN Connection 3" user pass
timeout /t 60000
pause goto start
I’m trying to create a script so It can auto rotate location
I appreciate your help but thats well beyond my scope of understanding
thanks its working
to stop vpm:
rasdial “VPN Connection 2” /DISCONNECT
It’s kind of a hack but you can use pyautogui to switch servers automatically by clicking on Random server (or a custom profile) in the Proton VPN gui
do this:
https://protonvpn.com/support/windows-10-ikev2-vpn-setup/
CMD
C:\Windows\System32\rasdial.exe “VPN” “username” “password”
use the same command with /disconnect to switch it off
.BAT (notepad as .bat extension, just example)
I didn’t testI didn’t test. Something like that.
@ ECHO OFF
: execute
cmd C:\Windows\System32\rasdial.exe “VPN1” “username” “password”
timeout 1000
cmd C:\Windows\System32\rasdial.exe “VPN1” “username” “password” /disconnect
cmd C:\Windows\System32\rasdial.exe “VPN2” “username” “password”
timeout 1000
cmd C:\Windows\System32\rasdial.exe “VPN2” “username” “password” /disconnect
goto execute