Skip to content
David Stein

IT Specialist, hacker and electronic enthusiast

  • Blog
  • About me – David Stein

Force Windows 10 to ask for user name and password

IT, Tutorials, Windows / By fires

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.

So you are screw! I told you don’t do it!

Ok, now we need fix it!

  1. boot some live Windows distribution (Gandalf Windows 10 PE, Hiren boot)
  2. open registry editor
  3. mount the remote hive from local disk
Registry PathFile 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
Standard registry hives

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.

Post navigation
← Previous Post
Next Post →

Categories

  • Army (1)
  • Electronic (2)
  • IT (61)
    • Internet (2)
    • Linux (15)
    • Networking (16)
    • Proxmox (2)
    • Security (1)
    • Synology (2)
    • Windows (29)
  • My projects (3)
    • BarcodeBarrier (1)
    • FireWeatherStation (2)
  • Programming (9)
    • IoT (6)
  • Reviews (4)
  • Tutorials (18)

My bio

David “fires” Stein

info@davidstein.cz

00 420 774 301 388

About me page

Copyright © 2022 David Stein | Powered by Astra WordPress Theme