March 29, 2011

Automatically lock computer after bootup

Need your pc/server to autolock after rebooting? Here's one way:
1. Create vbs script; this script will auto lock your computer after 30 seconds. Save as lock.vbs

Wscript.Sleep 30000
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "rundll32.exe user32.dll,LockWorkStation",1,false

2. Next, create a string in your registry for lock.vbs to autorun during startup.
Go to: HKEY_USERS\S-1-5-21-1123561945-1060284298-839522115-500\Software\Microsoft\Windows\CurrentVersion\Run
Create a new string value called lock.vbs. Set the value data to C:\path\lock.vbs (assuming path is where you saved lock.vbs
3. Your computer/server most likely requires a login. So that services automatically startup, you probably want it to automatically login. Download and install Tweakui from http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
Once installed, run the Tweakui from START > Programs, expand Logon in the left window pane, select Autologon and enter your system credentials in the right pane.
Your system should now be able to boot up automatically and lock itself!

Can't get into Safe Mode to run System Restore

 

Can't get into safe mode to run System Restore? Try a manual system restore by reverting to a backed up registry via your Windows XP CD and the recovery console.
Step by Step instructions can be found here:
http://www.icompute.info/System_restore_from_xp_cd.htm

No comments:

Post a Comment