1

I'm aware of the hack where you can copy cmd.exe to the program that launches the sticky keys GUI, thereby giving you command line admin access from the Windows lock screen after pressing Shift five times.

I'm curious if there's a similar way to add a different key sequence to launch cmd.exe from the Windows lock screen using a different key sequence. This would allow an easier and quicker method of resetting a user's password, remoting into another machine, changing a text file without having to log in, etc.

1

You can use an Ubuntu Live CD to make the Ease of Access Center shortcut (Win+U) open CMD instead. Under /Windows/System32, rename Utilman.exe to something else and rename/copy+rename CMD.exe to Utilman.exe.

This will let you open CMD by pressing Win+U, and it will work everywhere.

  • Win+U is still a little too easy to accidentally press. I've published some internal documentation about windows shortcut keys and people may press that expecting to get the ease of access utility. I'm looking for something very obscure like alternating shift, control, alt, maybe a function key, etc. Thanks for the pointer though. – user38537 Apr 20 '15 at 22:07
  • @user38537 Well, you'd need another program to replace. – TheWanderer Apr 21 '15 at 0:02
1

You can change any .exe (narrator, sticky keys, magnifier)that is avaiable from a locked windows box.

I'll show you how to change the magnify.exe

You can change the magnify.exe hotkey (Winkey and +) so it will use cmd.exe with the built-in system account.

  1. You can do this with a Windows setup Media. Just download the appropriate ISO file, insert and reboot.

  2. When rebooting, press a key to access the installation.

  3. Choose to repair the computer, and press `Shift+F10' to open a command prompt.

  4. Look for the drive where Windows is installed on, by pressing C:, D: etc.

  5. When the drive is found, browse to the System32 directory by typing cd windows\system32

  6. First make a back-up of the magnify.exe in the C:\Windows directory, by typing copy magnify.exe ..

  7. Now overwrite cmd.exe with magnify.exe with the following command Copy cmd.exe magnify.exe

  8. Finally reboot the machine. and press the hotkey WindowsKey and + at the locked Windows screen to launch cmd.exe as the system account. (ability to enable/disable admin account, create new admin accounts etc.)

enter image description here

  1. To revert the Magnify.exe hotkey, run the following command from an elevated command prompt. Robocopy C:\Windows C:\Windows\System32 magnify.exe /B

  2. Now when locking again, and hitting the hotkey, you get the good old magnifier tool again: enter image description here

  • I'm aware of that trick. What i want is to create an entirely new key sequence, one that is undocumented on the Internet and highly unlikely the user will guess at the unlock screen, then assign an EXE to the new key sequence. – user38537 Mar 7 '16 at 15:53
0

Locked means are you referring to that you have forgotten your password? If so, restart the machine and press the F8 key continuously until you get a black screen with some options like:

  1. Start Windows in safe mode.
  2. Start Windows in safe mode with command prompt.
  3. Start Windows with networking.
  4. Start Windows normally.
  • Please read the question again carefully. Your answer does not answer the original question. – DavidPostill Jun 22 '16 at 15:04

protected by Community Feb 12 at 13:27

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.