Computer Hope

Microsoft => Microsoft Windows => Windows XP => Topic started by: Hu on March 14, 2006, 10:40:48 PM

Title: Auto lock, unlock and shutdown
Post by: Hu on March 14, 2006, 10:40:48 PM
Hi Experts,

When we want to lock the computer we do the following:
Ctrl Alt Del
(A dialog box appears)
Lock computer

When we want to unlock the computer we do the following:
Ctrl Alt Del
(A dialog box appears)
Key in password
Enter

Is there any possibility in the registry (or somewhere) of XP Professional menu to:
1.      automate the above,
2.      automate a shutdown at specified time?

Thanks.
Title: Re: Auto lock, unlock and shutdown
Post by: viking on March 14, 2006, 11:58:27 PM
1) What do you want to automate? Lock? Well, you can use also the windows key+L (the L key). To unlock, you have to press ctrl+alt+del and enter the username and password (username, in case you want to log off the user which locked the computer). You can't automate this -- but you can disable the lock option (why do you want to do it?). Are you in a domain? Then talk to network administrator/system administrator. It's your home computer? Then use the simple logon options, without passwords.
A simple way to lock the computer it's to set the computer to lock when enters in screen saver mode.


2) For shutdown at a specified time: you may create a bat file, which should contain a line like:
shutdown -s -f -t 60
(see shutdown command in windows)
And then, add a new scheduled task which runs that bat file at the specified time.
Title: Re: Auto lock, unlock and shutdown
Post by: Backdated on March 15, 2006, 04:23:09 PM
Winlogo key + L will initiate Fast User Switchng on a multi user machine.