Sometimes could be handy to force Windows 10 to ask for a username and password. For example, if you try to migrate the user from domain to local account via profwiz. And yes trust my it is not the best idea to try this type of migration.
Ok, let’s say you try migrace from domain to local account. And after restart Windows 10 show you login screen and ask for Windows. But there is problem, the account what Windows 10 try login does not exist anymore.
Ok, now we need fix it!
- boot some live Windows distribution (Gandalf Windows 10 PE, Hiren boot)
- open registry editor
- mount the remote hive from local disk
Registry Path | File System Path to Registy File |
HKEY_LOCAL_MACHINE \SYSTEM | %windir%\system32\config\system |
HKEY_LOCAL_MACHINE \SOFTWARE | %windir%\system32\config\software |
HKEY_USERS \Default | %windir%\system32\config\default |
HKEY_CURRENT_USER | %userprofile%\ntuser.dat |
4. open this key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
5. Modify the 32-bit DWORD value named dontdisplaylastusername and set its value data to 1 as shown below.
Restart! ok now you should be able to specify account at login screen so you can use .\AccountName to use local account.