Showing posts with label regedit. Show all posts
Showing posts with label regedit. Show all posts

Wednesday, November 16, 2022

Windows 10 - How to Hide User Accounts From the Sign-in Screen

 


Intro:

Windows 10 by default shows account names on the login screen. There are instances in which you wish to hide these names from this screen but not disable these accounts.

One such instance may be that you don't have enough computers and or devices to warrant a domain setup but you need to give the printer access to a local machine to save its scans to via the network (not USB).

In this instance the printer requires a networked location to save the scans to as well as a username and password to access said location. It's not wise to give it the username and password for your user because if the printer has an exploit and you're an admin user, well I bet you can guess what happens next.

The best way to approach this is to create a standard user that only has access to that networked folder and nothing else. Read and write permissions are fine (provided you're backing up that location elsewhere), else setup that user with write credentials only (unless the printer bitches about read access).

Once that user is created, Windows 10 by default will show that new user on the sign in screen. It's best not to proactively divulge potential users on the system to guests who can walk up and see the screen. Especially if your "printer" user is using the password of "printer".

Fortunately you can hide any name you want from the Windows sign in screen.

*Be advised I've only tested this in Windows 10 Pro and Enterprise.

*Make sure you're using an admin account to do this or you will not be able to make changes to the registry!


Solution:

Identify the username you wish to hide:

1. Open a command prompt and type:

net user
Find the username in the list and make note of it (Windows usernames are not case sensitive however Microsoft Active Directory is case aware).


For this example we'll target "user1".


Adding User Into Registry and Making New Keys:

1. Right click Start --> Run --> regedit.exe --> Ok --> Yes on UAC prompt.

2. Either browse to the following location or copy/paste it into the bar under the menu buttons at the top and hit Enter:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
3. On the key (yellow folder) to the left labeled, "WinLogon", right click it and click New --> Key.


4. Name the new key "SpecialAccounts" and press Enter when done.


5. Right click on the newly created "SpecialAccounts" key and create another key called, "UserList".



6. Right click on "UserList" or in the empty white space on the right and create a new DWORD (32-bit) Value.


7. Replace, "New Value #1" with the user name you noted in the beginning, ie "user1". Do not include the quotes.



8. There's two values this new DWORD value can have. 0 or 1. A value of 0 means the username will not be displayed on the sign in screen. A value of 1 means it will be shown. The base must be hexadecimal and not decimal.



9. The changes take effect once you've logged off your current user.


You can see the difference below:

value of 0

value of 1



Solution (short):

1. CMD --> net user --> make note of user name.

2. Regedit (as admin).

3. Navigate to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon".

4. Select key, "Winlogon" create new key named, "SpecialAccounts".

5. Select key, "SpecialAccounts" create new key named, "UserList".

6. Create new 32-bit dword value for each username you wish to hide.

7. Value of 0 hides user from sign in screen / Value of 1 shows user on sign in screen.

8. Log off and verify.


Conclusion:

As you can see in the above example it works. This tutorial only hides the user from the sign in screen.

If you wish to disable users this can be done by Right clicking Start --> Computer Management --> Local Users and Groups --> Users, select user, right click, Properties --> select "Account is Disabled" --> Ok.

*If you wish to come back to the same key in "regedit" when reopening it, close regedit prior to logging off.



πŸ‘½

Sunday, August 7, 2022

How to Switch Network From Public to Private in Windows 10

 


Intro:

Need to change your network connection from Public to Private?

For the life of me I can't seem to remember how to get to these options. It's probably because I'm very used to the old Windows Control Panel and I am not a fan of the new Windows Settings. If it ain't broke don't fix it. I mean it's stayed the same for more than 25 years, why change it now? Well, that's another topic for another day.


There's more than one way to accomplish this:

1. The first way is the via the Windows Settings application.

2. The second way is through the registry.


Windows Settings Method:

1. Right click the Start Menu.

2. Click "Settings".

3. Click "Network & Internet".

4. You'll see your physical network connections in the list below.

5. Find the one you want and click on "Properties".


6. At this point you can now choose "Public" or "Private".


Sunday, April 17, 2022

Copy Saved PuTTY Sessions from One Computer to Another


Intro:

I needed to move all my saved sessions from my main PC to my laptop. Instead of recreating them one by one I decided to dig around and see where PuTTY saves it's sessions to.

Fortunately they are saved in the Windows Registry and a quick export and import on the new machine is all that's needed.

Fix:
  1. Press the Windows key and search for "regedit.exe" on the source machine.
  2. If you're on Windows 10 you can paste the following link into regedit, "HKEY_CURRENT_USER\Software\SimonTatham\PuTTY".
  3. Right click on the tree named, "PuTTY" and select "Export".
  4. Save the file with a memorable name and to a location that you can use later to recall the saved .reg file.
  5. On the target computer recall that .reg file.
  6. Make sure PuTTY is not open. If it is, close it.
  7. Double click on that .reg file and select "Yes" to merge the file with the current registry.
  8. One that file has been imported open PuTTY and check that everything looks as it should.
  9. IMPORTANT - If you have saved certificates they will point to a location on the previous machine. You should copy them over with the same file name and folder structure as on the source machine.


πŸ‘½

Thursday, March 17, 2022

Windows 10 - How to Disable UAC Remote Restrictions - LocalAccountTokenFilterPolicy

Intro:

I've been testing out a new RMM recently. However after several failed hours trying to decipher a Windows 10 error code I stumbled across a small speed bump that had been causing this error.

I was trying to access a bunch of Windows 10 test VM's across the network by calling up their IP followed by "c$" to access their hidden shares. I needed to copy files to the remote machine but I kept receiving an access denied error.

*Applies to a Windows 8.1 computer sending data to a Windows 10 computer.
*Applies to a Windows 10 computer sending data to a Windows 10 computer.

I tried a bunch of different ways to access two test machines running different versions of Windows 10. Versions were 21H1 & 21H2. Neither seemed to change the outcome.

Problem:

I tried the following:
  • Connect via "\\192.168.1.100\c$"
  • Connect via "\\192.168.1.100\admin$"
  • Remotely connect to another machine using "services.msc"
  • Remotely connect to another machine using "regedit.exe"
  • Even "Computer Management" failed to connect to the remote machine.
They all returned back with "Error Code 5: Access Denied after typing in the username and password on that machine.
  • I made sure the local user existed on both machines with the same password and both had "Administrator" rights.
So far this isn't working like any previous version of Windows and I know that I've been able to connect to hidden shares easily with the correct credentials countless times in the past without having to do anything extra.

I start digging further and come across a Microsoft Knowledge Base article that talks about remote UAC control restrictions for Windows Vista. I know I've seen this post before but I never had to explicitly change anything in the registry to get this to work.


I proceeded to read on and found that one registry key needs to be added and all is right in the world again.πŸ˜’


How to Disable UAC Remote Restrictions in Windows 10:

  1. Start --> Run --> regedit
  2. Paste "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" without quotes into regedit and hit Enter.
  3. Create a new DWORD (32-bit) Value called, "LocalAccountTokenFilterPolicy" if it doesn't exist and give it a value of 1. Hit OK to save.
  4. Exit regedit.
Be sure to add a "DWORD (32-bit) Value" and not a "QWORD (64-bit) Value".




Now if you try any of the things I've mentioned at the beginning of this post they should work without an issue. You do not need to restart or even close the Registry Editor for this to take effect.

It seems that Microsoft has restricted legit local Administrator accounts from achieving full admin access unless interactively accessed via RDP or the likes.

πŸ‘½