So I’ve been happily using Windows 7 for a couple years (since the beta), but just finally moved my family into it, and discovered a new issue in the process:
Like XP, the “Win+L” key combination locks your profile so the next person won’t “be you.” But instead of the main Welcome screen with the list of accounts, you get the Switch User screen, with a button to take you to the real Welcome screen. This a confusing extra step when you’re the next guy just looking to login.
Not sure, but I may be the first with a decent solution. The ingredients are tsdiscon.exe (which does the “Switch User”), and Task Scheduler (which hooks it up to the Win+L combination), both of which are built into Windows. Here’s how:
- Click Start, type taskschd.msc, enter. Confirm any UAC prompts you get, and Task Scheduler will open.
- In the Action menu, click Create Task.
- In the Create Task dialog > General tab, type a meaningful Name like “Lock » Switch User”
- In the Security options section, click the “Change User or Group” button, type _Users_ in the dialog and click OK.
- On the Triggers tab, click the “New…” button. In the New Trigger dialog > “Begin the task” list, choose “On workstation lock” and click OK. This takes you back to the Create Task dialog.
- In the Actions tab, click the “New…” button. In the New Action dialog > “Program/script” field, type tsdiscon.exe and click OK. This takes you back to the Create Task dialog.
- Click OK again and enter the password for the administrative account it offers.
- Test it! Press Win+L and you should see the Switch User screen for a moment, then the main Welcome screen.
2011-01-17 UPDATE: As I was setting up this tweak on a new system, I noticed Windows 7 HOME doesn’t include tsdiscon.exe. It’s easy enough to copy from a Win7 Pro machine (from/to %windir%\System32), and then works as I described.
2011-02-10 UPDATE: It looks like I was on the same track as Duncan Smart. He didn’t make automate it with Task Scheduler, but he did write a downloadable substitute for tsdiscon.exe (handy if you have no access to a Windows PRO machine.)