In our office users have their own Windows 7 computer with their own account. I've started adding a hidden Administrator user for use with certain network services and so I can access their machines if we can no longer login for whatever reason (ie. someone quits and I don't know their password but need to re-purpose the machine).
Obviously this user doesn't show up on the login screen because it's hidden, but I want to be able to manually type in the username/password when I need to access this account. The only way I've been able to find to do this is to force all users to login with a username/password, however this solution does not work for our office.
My question is:
Does anyone know of a way I can manually enter Windows 7 login information WITHOUT forcing everyone to have to do this every time they log in. (I'm thinking something similar to how you user to be able to 'ctrl+alt+del' at the login screen and then enter your credentials but have been unsuccessful in figuring out how to do this.)
Best Answer
Warning! Following is going to modify/replace some system files and modifying registry keys at HKLM. You will not able to use some builtin accessibility options.I think that some virus scanners do not like this (modifying system files this way) and may require excluding modified files from scan. Thats not all... we are replacing files that will run under mighty SYSTEM account, so your fresh scripts will have same permissions.
[optional] If you know how to behave as
TrustedInstaller
while setting this up there is no need to change permissions.[info]
CWD
=something
Tells you Current Working Directory.Okay, last warning is that there is possibility that small typo will lock you out of your system and you may need to take control back while being offline [in terms of running os].
First, take advantage of running programs at logon screen
One quick way to achieve this is to replace
%windir%\System32\Utilman.exe
with your own program, in this case it is replaced with application that writes list of visible / hidden users to registry.CWD
=anything you want
You need program that toggles visible users, one easy way to write simple programs is to use
notepad
and any batch compiler. (linked compiler has built in editor)If using this method you will need some code to place inside too:
Here is explanation what above script does:
Replace system files
After that save your file as
Utilman.cmd
and compile it so it will beUtilman.exe
, we are good if you have compiled your batch and your.exe
file is working. Copy your freshutilman.exe
to clipboard.CWD
=%SYSTEMROOT%\System32\
Now, replace microsoft's
utilman.exe
with your own freshutilman.exe
. You may need to take ownership of files and set permissions to allow modifying files at system32.Define special users (registry keys/values to change):
Create new directory
SwitchVisibleUsers
.CWD
=%SYSTEMROOT%\System32\SwitchVisibleUsers\
Create two files named
hideusers.reg
anddisplayusers.reg
. These two files defines which users to hide/display at logon screen, edit contents to correspond your configuration.Contents of
hideusers.reg
:And contents of
displayusers.reg
:Now, you're done. How to test it?
Just logout or switch user if fast user switching is enabled and when you are at logon screen try to use accessibility options (small button at left bottom corner). If Administrator, Chuck Norris or Jon Skeet is nearby, they will appear and disappear while you are clicking this magic button.