![]() |
![]() |
| Home | What's New | Products | Download | Purchase | Support | About Us | Contact |
SUPPORT > TIPS
|
|
|
|
Login Script to Log in to Multiple Sessions with SecureCRT®A developer at a telcommunications firm submitted this scripting tip, which allows him to easily change passwords on the dozens of sessions he has to manage. This script can be used with both SecureCRT and CRT. "Corporate security requires passwords to change every month...I use a single VBScript login script for all these sessions and then I only change one script every time I have to change the (common) password. I even have the script customize itself, depending on which host is using it, once the login sequence is done." The script below logs in with the information that is common to all the servers. The script then reads the screen to get the name of the machine to which it's connected. That machine name is then used to decide on additional setup that can be automated before the script terminates and the Telnet session goes interactive. Here is a link to VBScript login script: MultiSessionLogin_vbs.txt To learn more about scripting for SecureCRT, visit our Scripting Examples web page. '~~~~~~~~~~~~~~~~~~~~ Begin MultiSessionLogin.vbs ~~~~~~~~~~~~~~~~~~~~~~~~~~ #$language = "VBScript" ' script for logging in to multiple servers Sub main ' turn on synchronous mode ' login name ' password ' find machine name ' decide if more commands are needed ' setup the test servers (names start with tstsrv) End Sub '~~~~~~~~~~~~~~~~~~~~ MultiSessionLogin.vbs ~~~~~~~~~~~~~~~~~~~~~~~~~~ Tell us what you think. Did you find this tip useful? Do you have a question you'd like us to answer? Send your comments and questions to VanDyke Software Support.
|
||||||||
|
VShell, SecureCRT, SecureFX, Entunnel, CRT,
and AbsoluteFTP are trademarks or registered trademarks of VanDyke Software, Inc. in the United States and/or other countries. All other trademarks or registered trademarks
are the property of their respective owners.
Site Map | Legal Notices | Privacy
Policy | Refund
Policy |