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

Automatically lock computer after bootup

06/14/10

Permalink 01:47:00 pm, by galidon Email , 230 words   en-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
    <code>
    Wscript.Sleep 30000
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "rundll32.exe user32.dll,LockWorkStation",1,false</code>

     
  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

    or if unavailable:
    Navigate to any of the following path according to your requirement and then add a new “String key” and store path of the Program to be run in this key’s value.

    For Local Machine-
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
    CurrentVersion\Run
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
    CurrentVersion\RunOnce


    For Current User-
    HKEY_CURRENT_USER\Software\Microsoft\Windows\
    CurrentVersion\Run
    HKEY_CURRENT_USER\Software\Microsoft\Windows\
    CurrentVersion\RunOnce


    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.

    For Windows 7, to autologin
    1. Click on Start and then enter the following command in the search box:
      netplwiz
      Press the ENTER key.

      This command will load the Advanced User Accounts Control Panel applet.
       
    2. In the Users tab, uncheck the box next to Users must enter a user name and password to use this computer.
       
    3. Click on the Apply button at the bottom of the User Accounts window.

Your system should now be able to boot up automatically and lock itself!

More:
Registry Startup Paths

Thank you for reading IT Blog


back to galido.net

Bookmark and Share

Special thanks to:

Green Gadgets
For giving us this award!

Restore America!

Search

IT Blog Feed

Related IT Blog Feeds







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.

XML Feeds

February 2012
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      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