« Optimize your system for running memory intensive appsOffice 2007 Excel Documents Slow to Open »

Automatically lock computer after bootup

2010-06-14

Permalink 13:47:00, by galidon Email , 171 words   English (EU)
Categories: Tips and Tricks

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!


back to galido.net

Bookmark and Share

Feedback awaiting moderation

This post has 1 feedback awaiting moderation...

Leave a comment

Looking to Exchange Links? Contact Us

Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
September 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

Galido.net Information Technology Blog provides you with information and links to computer tips, tricks, solutions, news and relevant information to IT related topics. Information Technology Blog provides you with information and links to computer tips, tricks, solutions, news and relevant information to IT related topics. We also feature a collection of blogs containing links to information technology related software, hardware, news, cool sites, news on gadgets, where to get them, search engine optimization, and more.

Search

XML Feeds

   Misc Links

   Syndicate this Blog


Add to Google Reader or Homepage
Add to My AOL
Subscribe in Bloglines
 Subscribe in a reader

   Validate the Blog

[Valid RSS]

Gawker Artists