kiboost Posted July 11, 2011 Posted July 11, 2011 Hi, I will to run some scripts on several machines, with some controlclick, winwaitactivate, send etc. Correct me if I'm wrong, but these command won't work if the session is lock. Knowing all machines are windows7x64 and I know session password for every machine, can I run an autoit script that will type the password, unlock the session, then execute my scripts ? I realize this is 'limit' for security but I absolutely need this. Or I would have to RDP each machine to open the session, wait for the scripts to run/finish, then close all rdp sessions. Thks Kib Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79
Tripredacus Posted July 11, 2011 Posted July 11, 2011 Here is some related VBS, which can be translated into AutoIt quite easily: http://blogs.technet.com/b/heyscriptingguy/archive/2004/11/15/can-i-lock-a-workstation-using-a-script.aspx Twitter | MSFN | VGCollect
kiboost Posted July 11, 2011 Author Posted July 11, 2011 (edited) Well, I don't want to lock the workstation, but to unlockit. I've saw in another thread that controlsend works so I will try with some winwait, controlsend, instead of winwaitactive, send. But seems ControlClick doesn't work ... Edited July 11, 2011 by kiboost Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79
Tripredacus Posted July 11, 2011 Posted July 11, 2011 I'm seeing something related to ForceUnlockLogon, but there doesn't seem to be a real good list of User32.dll functions, as some (even the Unlock) isn't shown.http://support.microsoft.com/kb/281250But even the previous link I posted shows that the following is incorrect:There is no function you can call to determine whether the workstation is locked.From here:LockWorkStation FunctionSo there definately seems like there would be a way to unlock it via script, HOWEVER I can see why there would be no official support documentation on how to do it, as it would be a severe security risk! Twitter | MSFN | VGCollect
kiboost Posted October 2, 2011 Author Posted October 2, 2011 Any idea about unlocking a windows7 station ? I have more and more need to this which I can't overcome, I must find a solution. My station use new win7 logon screen but without necessity for ctrl alt del. I found this, which basically brings back the default desktop to background, making other windows reappearing : http://www.codeproject.com/KB/system/RemoteUnlock.aspx But having service on each machine etc hmmm. I have ever some autoit client running on all machine, and of course I know every single account login/pass, so I could ask a client to run a special command on the machine if the needed. Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79
kiboost Posted October 3, 2011 Author Posted October 3, 2011 How could I use autoitinfo to get longon screen username field so I can try to controlsend the password there ? Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79
unixnow Posted December 27, 2011 Posted December 27, 2011 May be you can use this tools: http://www.logonexpert.com/Use autoit script call the logonexpert command, you can unlock windows session.But it need pay!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now