For some of you that like to play with automation tools, or just want to auto login and have your programs start up, and well don’t necessarily want your desktop open to the world.
Tech Warning! You need to play in the registry, so know what your doing or don’t do.
- Open Registry Editor (Start Orb –> type Regedit.exe)
- Browse to this location: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWinlogon
- Edit DefaultUserName key and type your domain user name (domainuserid)
- If doesn’t exist, Create DefaultDomainName (string or REG_SZ) key and edit it with your domain name
- If doesn’t exist, create DefaultPassword (string or REG_SZ) key and edit it with your password
- If doesn’t exist, create AutoAdminLogon (string or REG_SZ) key and edit with “1”.
- Close Registry Editor
- Open Notepad
- Type this:
On Error Resume Next
DIM objShell ‘sleep(“1”) Set objShell = CreateObject(“Wscript.Shell”)
objShell.Run “%windir%System32rundll32.exe user32.dll,LockWorkStation”
strTime2 = (strTime * 60) * 1000
- Save it as “LockDesktop.vbs”
- Click Start –> All Programs. Right click on Startup and select Open.
- On Startup Folder, right click on empty space and select New –> Shortcut.
- Select your script (LockDesktop.vbs) on your saved location and create a shortcut.
- That’s it. Reboot your computer and watch your computer auto login with your account and locks the desktop right away.
If you change your password, remember to edit the registry (DefaultPassword)