Wednesday, September 08, 2010

How to do an automatic login on Cisco Clean Access Agent

Synopsis
There is no script to do automatic login on Cisco Clean Acess Agent in any version of windows.

Affects
All version of Windows, including the latest Windows 7, 32 bit and 64 bit.

Prerequisites/Notes
You must make sure you have fulfilled the requirements that is requested by cisco clean access agent first.

Relieve Steps
1. Install autohotkey. download from http://www.autohotkey.com/download/

2. Download the autohotkey code from my website:
http://theforwardway.com/programs/ciscologin.ahk

3. Modify the ciscologin.ahk, putdown your username and password right after the comma of the "Send," commands. Spaces are ignored in send commands. For special characters like space ! # + ^ {} Use {} For more details see autohotkey documentation http://www.autohotkey.com/docs/commands/Send.htm


while True
{
WinWait, Cisco NAC Agent
WinActivate ; Automatically uses the window found above.
WinSetTitle,Cisco NAC Agent, ,Cisco NAC Agent Entering Password. Do not move.
Send,{Esc}
Send,           ;putdown your username after the comma on this line
Send,{Tab}^A{Del}
Send,          ;putdown your password after the comma on this line
Send,{Enter}
WinSetTitle,Cisco NAC Agent Entering Password. Do not move., ,Cisco NAC Agent Logging in
Sleep 1000
if WinExist(Cisco NAC Agent)
{
WinActivate ; Automatically uses the window found above.
Send,{Enter}
Sleep 1000
}
if WinExist(Cisco NAC Agent)
{
WinActivate ; Automatically uses the window found above.
Send,{Enter}
Sleep 1000
}
if WinExist(Cisco NAC Agent)
{
WinActivate ; Automatically uses the window found above.
Send,{Enter}
Sleep 1000
}
if WinExist(Cisco NAC Agent)
{
Winclose Cisco NAC Agent
}
}






4. Save the script into your startup folder of the windows start menu.

5. Find your Cisco Clean Access Agent from the the notification area of the windows taskbar, right click the agent's icon, choose "Popup Login Window".

6. Double click the automatic login script now to activate the automatic login script for cisco clean access agent.

Other Information
Cisco Clean Access for Max OS/X
http://hints.macworld.com/article.php?story=20060506184128453

4 comments:

Way said...

This is the best thing.

Way said...

I had to adjust the delay to keep it from missing parts of the username when entered, but you just saved me a ton of hassles! Thanks so much!

Way said...

Thank you so much! This is awesome!

Way said...

What they said.