Skip to content
No results
  • Technology
  • Food
  • Family
  • Entertainment
  • Comics
  • About
eBabble blue
  • Technology
  • Food
  • Family
  • Entertainment
  • Comics
  • About
eBabble blue

Automatically login and lock a Windows PC

  • September 16, 2010
  • Technology
  • Scott VanderPloegScott VanderPloeg
  • December 6, 2019

I’ve been playing around with Windows Home Server and the Vail beta the last few weeks and found things were a lot easier when a user was logged in.  Windows Home Server is based on Windows Server 2003 and has a utility that allows any program to run as a service but this doesn’t always work for me, plus WHS Vail beta is based on Windows Server 2008 and no such utility exists to my knowledge.  I want PS3 Media Server running so I can stream video to my television via my PS3.  It has an option to install as a service but it doesn’t work for me so I log into the system and it runs in my Startup folder.

To get around this we want to do two things: have Windows automatically log in with a username and password our of choosing and then lock the PC right away.  This technique works with Windows Vista, 7 and Server 2008.  Go to run and enter “control userpasswords2” and click OK.  This window comes up:

User Accounts

Uncheck “Users must enter a username…” at the top for your chosen account and you’ll be prompted to enter the password twice.  From now on when you restart the PC that user account will log in automatically.

Since I don’t want anyone messing with my WHS Vail Beta PC I would like the desktop to lock once Windows has started.  First go to Start, All Programs, right-click on Startup folder and select open.  Right click on the right side and select New, Shortcut.  In the Location field enter “rundll32.exe user32.dll,LockWorkStation“, click Next, give it a good name like “Lock PC” and click Finish.  Now when Windows starts our new shortcut will run and lock the desktop.

New Shortcut

It’s basic and gets the job done: log in, load everything and lock the desktop so others can’t interfere.  This isn’t a secure scenario since anyone can reboot the PC and stop items in the Startup folder from loading by holding Shift down.  For me on Windows Home Server at home I’m only worried about my children madly typing on the keyboard.

Tags
# lock# login# vail# WHS
Previous Post DC to stop shrink wrapping "most" hardcovers
Next Post It Was The War Of The Trenches by Tardi

Related Posts

WHS Restore 1

Windows Home Server & 64 Bit Restore

Nvidia 680i Windows Home Server

FreeNAS: first steps

WHS Add-In: ClientInfo

  • Technology
  • Food
  • Family
  • Entertainment
  • Comics
  • About

Subscribe to eBabble

Check your inbox or spam folder to confirm your subscription.

RSS More from Scott on Artist’s Edition Index

  • Deal Alert May 2025
  • AE Index Podcast Episode 101
  • AE Format Out of Print Sales March 2025
  • Bat-Man: First Knight Artist’s Edition
  • IDW May 2025 Catalogue

Copyright © 2025 Scott VanderPloeg

Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License