If you like to be able to step away from your computer while your desktop and programs load, but don’t want to enable the autologin feature, this script will begin loading your desktop when the login screen shows up.
Technically, this trick enables auto-login and then locks your computer as soon as it starts up, but it’s a clever workaround for this particular annoyance. All you need to do is create a new text file named
LockWorkStation.vbs (or whatever else you want; just remember the name). Copy and paste this code into the file’s body:
Go to Start > All Programs > Accessories > Run and type in control.exe userpasswords2. Hit Enter and uncheck the box that says “Users must enter a user name and password to use this computer”. Then hit up the Advanced tab and click on the Advanced button. In the left pane of the window that pops up, click on the Users folder and right click on the user for which you want this hack to apply. Click on Properties, go to the Profile tab, and type
LockWorkStation.vbs in the Logon Script box (or whatever the name of your script is).
Next, drag the script to whatever folder you want to keep it in, right click on that folder and hit Properties. From the Sharing tab, click Advanced Sharing. Check the “Share this Folder” box and type in
NetLogon in the Share Name box. Set the number of simultaneous users to 1, and hit Permissions to make sure that you are the only user listed and that read access is enabled. If it is, hit OK and save all your settings.
Now, whenever you log into Windows, Windows will start loading your desktop and login programs while the login box is on the screen. So, you can start up your computer, step away from your desk, and when you come back everything will be loaded and ready when you log in. Check out the video to watch the setup in action.
Windows Autologin Lock Screen [Mike McQuaid]