Jump to content

Recommended Posts

Posted

OK, I want to setup for testing a unit (that is what I do) that is Vista operating system (Business).

I can use the PowerCFG.exe to change the standby, hibernate, monitor/display, hdd, etc timeouts to 0 (always on). I can use AutoIT to set up the rest of the param

However, I need to turn OFF the "require password" for resuming the laptop. I cannot "see" the ControlID areas in the Power Options window. Also, I do NOT want to muck around in the registry. I would like to know if there is another application like PowerCFG that ties back to turning on/off the "Require a passwordon wakeup".

Thanks

E

Posted (edited)

Well I hate to tell you but when you uncheck "On resume, password protect" Windows is messing with your registry anyways so don't be scared:

RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop", "ScreenSaverIsSecure", "REG_SZ", "0")

http://support.microsoft.com/kb/928717

Edited by weaponx
Posted

You are correct. Howver, the NAG (aka UAC) keeps coming up and AutoIt does not seem to be able to click "Continue" very well.

I hate to enable the REAL admin account and go there, but might have to

Posted (edited)

You are correct. Howver, the NAG (aka UAC) keeps coming up and AutoIt does not seem to be able to click "Continue" very well.

I hate to enable the REAL admin account and go there, but might have to

Well this is being set under HKEY_CURRENT_USER, so admin rights will set this only for admin account.

Maybe add #RequireAdmin at the top of your script???

Edited by weaponx

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...