Double-click this file and you are logged in to campus VPN without typing your AndrewID
Because unlike the usual saved usernames password feature on your internet browser, Cisco AnyConnect Secure Mobility Client use its own browser when you hit the campus VPN and then requires you to manual type your username and password. Doing this frequently can be tedious and I would argue that typing it manually might even be more dangerous than saving on browser (it’s easier to trace people keyboard in the network. I have witness that myself with some old friends as a test)
This method is not originally made by me; I have to give credit to Pavel Eremin who I forked his project from on GitHub. I edited the script to fit the usage of anyone in CMU.
- (for CMU)korawichkavee/CMU-cisco-anyconnect-vpn-save-password: CMU Cisco AnyConnect VPN save password helper (github.com)
- (OG)paveleremin/cisco-anyconnect-vpn-save-password: Cisco AnyConnect VPN save password helper (github.com)
for those who is new to using VPN,
- Description of Virtual Private Networking (VPN) — Computing Services — Office of the CIO — Carnegie Mellon University (cmu.edu)
- How to Use a Virtual Private Network (VPN) — Computing Services — Office of the CIO — Carnegie Mellon University (cmu.edu)
How to use the script?
You just need to download “CiscoVPN_CMU.vbs”, edit your Andrew ID and password. (& of course, have Cisco AnyConnect on your PC, but you probably already have it). You can use Notepad, WordPad, VS Code, or any text editor to edit the code. Save it.
When you double click the script, it should automatically do it all, from starting Cisco AnyConnect, click enter for you, type and tab all information and be done. You just let the code do the work, so don't click anything while that happens. The whole process is very fast.
You do not have to know anything about VBScript, but if you insist, → VBScript — Wikipedia. I think it’s possible to go beyond this and let the Cisco AnyConnect run when your start Windows OS, but I don’t want to go there yet. Also, I should state here that, obviously, your edited script should be in a safe place of your computer. I take no responsibility whatsoever if something bad happens. You are likely to be a CMU student if you are reading this, so I believe in your intelligence.
