| « Optimize your system for running memory intensive apps | Office 2007 Excel Documents Slow to Open » |
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!
This post has 1 feedback awaiting moderation...