Help please? My user account has disappeared › Windows 10


  1. Posts : 1
    Windows 10 x64
       #1

    Help please? My user account has disappeared › Windows 10


    Okay here is my problem, i was playing around with .bat files and stupid me decided to run one and now my account has disappeared and now can only be found in my C: drive. this .bat file contained
    "
    cd\
    cls
    REM "Hey man"
    REM ------------------------------
    @echo off
    set /p user=PLS INSERT YOUR USER :
    set /p pass= PLS INSERT YOUR PASSWORD :
    net user /add %user% %pass%
    net localgroup administrators /add %user%
    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\Userlist" /v %user% /t REG_DWORD /d 0
    pause
    " Please, if anyone knows what i should do im begging you, PLEASE help.

    - - - Updated - - -

    Okay, so stupid me posted this and magicly fixed it by going to reg. and changing my account value to "2"
      My Computer


  2. Posts : 4,187
    Windows 11 Pro, 22H2
       #2

    Welcome to TenForums! Glad you found a solution. Sounds like a bit of a panic inducer there for a little while .

    I'll just take the moment to note how important always having a backup is!
      My Computers


  3. Posts : 16,950
    Windows 10 Home x64 Version 22H2 Build 19045.4170
       #3

    Clapps,

    If you had not solved the problem, I would have posted these links
    How to Create Hidden User Account - MyDigitalLife
    How to logon to a hidden account in window 7 - Microsoft Community
    but, since you have solved it, I won't post them.

    Denis
      My Computer


  4. Posts : 68,988
    64-bit Windows 11 Pro for Workstations
       #4

    Hello Clapps, and welcome to Ten Forums.

    The registry key and value below in the .bat file you used will disable/hide an account like in option 3 of the tutorial below.

    reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\Userlist" /v %user% /t REG_DWORD /d 0

    Enable or Disable Account in Windows 10
      My Computers


  5. Posts : 4,187
    Windows 11 Pro, 22H2
       #5

    Tip: If you are going to experiment with batch files that perform registry changes, make a backup of at least those keys and make sure that you look into the purpose of the key first so that you are clear on what changing the key or value may potentially do.

    Personally, before I start poking in the registry, I update my daily system image backup as well, just to be extra safe
      My Computers


  6. Posts : 7,607
    Windows 10 Home 20H2
       #6

    Create a restore point before playing with Registry and scripts if you are unfamiliar with them.

    Add Create Restore Point Context Menu in Windows 10
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:19.
Find Us




Windows 10 Forums