- Run Registry Editor (RegEdit.exe).
- Navigate to the following registry key:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserListNote: If SpecialAccounts and UserList is not found, create new sub-key and name them accordingly.
- Select UserList, and in the right pane, right click on any blank space, and point to New -> DWORD (32-bit) Value.
- Name the new DWORD registry value name as the exact same name that match the name of the user account to be hidden.For example, if the user ID of the user account is "Prince", the name the registry value as Prince.
- Double click on DWORD registry value, and set the value data to 0 in oder to hide the account from Welcome Screen.Tip: To display the user account on Welcome Screen again so that it’s visible again, delete the registry entry, or set the value data to 1.
- Exit Registry Editor.
- Log off or restart computer to make the change effective.
A recent fan of TDD, I set out to write tests for whatever comes my way. And there was one feature where the code would print messages to the console. Now - I had tests written for the API but I could not get my head around ways to capture these messages in my unittests. After some searching and some stroke of genius, here's how I accomplished capturing stdout.