Skip to main content

Timeline for Cisco AnyConnect v3.1 AutoLogin

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Sep 11, 2018 at 4:53 comment added Scott - Слава Україні (1) @informatik01’s excellent explanation doesn’t fully address the need for the echo| at the beginning of the command line.  The reason is that set /p is the command to read a value (a line) from the standard input.  Without echo|, the set /p=MyPassword|clip command would silently sit and read a line from the terminal.  (2) I hate to see a | without spaces before and after.  But beware that echo | set /p=MyPassword | clip will write MyPassword  (with a trailing space) to the clipboard.  You can prevent that by adding quotes: echo | set /p="MyPassword" | clip.
Jun 20, 2015 at 20:26 comment added bers @informatik01 Thanks for the explanation!
Jun 20, 2015 at 15:40 comment added informatik01 @bers If you use just echo your_pass| clip it will also put/append the new line character at the end of your_pass. Just try it yourself and when you paste it in some editor you'll notice that the cursor is on the next line (if you have an editor that can show new line characters, like Notepad++ or SciTE, use it and you will see CRLF on Windows at the end of your_pass). But MikeZ's current solution works perfectly (as a way of copying a password to the clipboard).
Jan 27, 2015 at 19:55 comment added MikeZ To be honest it was simply the end result of a lot of Googling, and it worked. If you're more familiar with command line scripting, please let me know the benefits and I'll be glad to update my answer.
Jan 27, 2015 at 18:49 comment added bers Please, what is the advantage of echo|set /p=MyPassword|clip compared to just echo MyPassword|clip?
Dec 8, 2013 at 16:14 comment added Mike Pennington If you're willing to do some light automation legwork, use autoit to start the VPN app and then copy the password into the password field
Dec 5, 2013 at 15:25 vote accept MikeZ
Jan 27, 2021 at 22:19
Dec 5, 2013 at 15:25 history answered MikeZ CC BY-SA 3.0