Windows 10: Writing "net user name localgroups" changed my password to localgroups

Discus and support Writing "net user name localgroups" changed my password to localgroups in AntiVirus, Firewalls and System Security to solve the problem; It was the last line I wrote on the cmd and it didn't ask me to write the password again, took me some thinking when later I couldn't log in.... Discussion in 'AntiVirus, Firewalls and System Security' started by Alessio_M_, Apr 20, 2021.

  1. Writing "net user name localgroups" changed my password to localgroups


    It was the last line I wrote on the cmd and it didn't ask me to write the password again, took me some thinking when later I couldn't log in.

    :)
     
    Alessio_M_, Apr 20, 2021
    #1

  2. The command net localgroup someGroup someUser /delete fails.

    Windows version: Windows 10 Home, migrated from Windows 8.1

    The migration to Windows 10 set the Guest account of Windows 8.1 inactive and terminated its support.
    Therefore, I made a standard local user account and wanted to convert it to a "Guest" account:

    • Create the user account:

      >net user Visitor /add
    • Set its initial passworD:

      >net user Visitor pw
    • Set the other options:

      >net user Visitor active:yes /passwordchg:no /comment:"Limited account for visitors"
    and tried to modify this account to a Guest account:

    • Add it to the Guests group:

      >net localgroup Guests Visitor /add
    • Remove it from the Users group:

      >net localgroup Users Visitor /delete
    Soon I noticed that the user=Visitor has the same access permissions as the members of the group=Users.

    Investigation



    I made a folder D:\testACL with:

    >icacls D:\testACL

    D:\testACL BUILTIN\AdministratorsWriting "net user name localgroups" changed my password to localgroups :(F)

    BUILTIN\UsersWriting "net user name localgroups" changed my password to localgroups :(OI)(CI)(RX)

    BUILTIN\AdministratorsWriting "net user name localgroups" changed my password to localgroups :(OI)(CI)(IO)(F)

    NT AUTHORITY\SYSTEMWriting "net user name localgroups" changed my password to localgroups :(F)

    NT AUTHORITY\SYSTEMWriting "net user name localgroups" changed my password to localgroups :(OI)(CI)(IO)(F)





    The command net localgroup gives results as expected.




    >net localgroup Users

    Members

    --------------------------------------

    UserB

    NT AUTHORITY\Authenticated Users

    NT AUTHORITY\INTERACTIVE



    >net localgroup Guests

    Members

    --------------------------------------

    Visitor

    Guest



    >net user Visitor

    User name Visitor

    Password required Yes

    User may change password No

    some lines omitted

    Local Group Memberships *Guests

    Global Group memberships *Geen





    The File Explorer

    File Explorer → Properties → Security → View Effective Access of:



    Group = Users as expected

    Group = Guests no access; as expected

    User = Visitor access same as Group = Users;
    ERROR, SHOULD BE NO ACCESS!

    User = Guest no access; as expected





    The command whoami /groups executed as:



    The administrator – Microsoft account

    Group Name
    Type SID .

    Mandatory Label\Medium Mandatory Level Label S-1-16-8192

    Everyone Well-known group S-1-1-0

    NT AUTHORITY\Local account and member of Administrators group

    Well-known group S-1-5-114

    compX\HomeUsers Alias

    S-1-5-21-3959489222-1251720881-413830006-1002

    BUILTIN\Administrators Alias
    S-1-5-32-544

    BUILTIN\Users Alias
    S-1-5-32-545

    NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4

    CONSOLE LOGON Well-known group S-1-2-1

    NT AUTHORITY\Authenticated Users Well-known group S-1-5-11

    NT AUTHORITY\This Organization Well-known group S-1-5-15

    MicrosoftAccount\XXXXXXXXXXXXXX.nl User
    S-1-11-96-very long SID

    NT AUTHORITY\Local account Well-known group S-1-5-113

    LOCAL Well-known group S-1-2-0

    NT AUTHORITY\Cloud Account Authentication Well-known group S-1-5-64-36



    A not-changed standard user

    Group Name
    Type SID .

    Everyone Well-known group S-1-1-0\

    compX\HomeUsers Alias

    S-1-5-21-3959489222-1251720881-413830006-1002

    BUILTIN\Users Alias
    S-1-5-32-545

    NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4

    CONSOLE LOGON Well-known group S-1-2-1

    NT AUTHORITY\Authenticated Users Well-known group S-1-5-11

    NT AUTHORITY\This Organization Well-known group S-1-5-15

    NT AUTHORITY\Local account Well-known group S-1-5-113

    LOCAL Well-known group S-1-2-0

    NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10

    Mandatory Label\Medium Mandatory Level Label S-1-16-8192



    The user=Visitor

    Group Name
    Type SID .

    Everyone Well-known group S-1-1-0

    BUILTIN\Guests Alias
    S-1-5-32-546

    BUILTIN\Users Alias
    S-1-5-32-545

    NT AUTHORITY\INTERACTIVE Well-known group S-1-5-4

    CONSOLE LOGON Well-known group S-1-2-1

    NT AUTHORITY\Authenticated Users Well-known group S-1-5-11

    NT AUTHORITY\This Organization Well-known group S-1-5-15

    NT AUTHORITY\Local account Well-known group S-1-5-113

    LOCAL Well-known group S-1-2-0

    NT AUTHORITY\NTLM Authentication Well-known group S-1-5-64-10

    Mandatory Label\Medium Mandatory Level Label S-1-16-8192



    Notes and questions:

    What is the difference between type=Alias and type=" Well-known group"?

    I could not found a possibility get this information by wmic

    The output of the following items match, show Visitor as a member of the group=Users and indicate a failing
    >net localgroup Users Visitor /delete

    • user=Gebruiker→ whoami
    • File Explorer → Properties → Security → View Effective Access user=Gebruiker
    • Access of folders by all programs, I runned.


    The output of the following commands match. However, its output doesnot match the output above.

    >net localgroup Users

    >net localgroup Guests

    >net user Visitor



    Finally, I searched the registry



    The SIDs of the user accounts are:

    >wmic useraccount get name,sid

    Name SID

    Administrator S-1-5-21-3959489222-1251720881-413830006-500

    UserB S-1-5-21-3959489222-1251720881-413830006-1004

    Visitor S-1-5-21-3959489222-1251720881-413830006-1005

    DefaultAccount S-1-5-21-3959489222-1251720881-413830006-503

    Guest S-1-5-21-3959489222-1251720881-413830006-501

    HomeGroupUser$ S-1-5-21-3959489222-1251720881-413830006-1003

    UserK S-1-5-21-3959489222-1251720881-413830006-1001



    The key

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy]

    contains some user accounts and their memberships. Only the

    S-1-5-21-3959489222-1251720881-413830006 -500, -1001, -1004, -1005 ;

    Missing -501, -503, -1000, -1002, -1003 ;



    About the user=Visitor with SID …-1005

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\S-1-5-21-3959489222-1251720881-413830006-1005]

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\S-1-5-21-3959489222-1251720881-413830006-1005\GroupMembership]

    "Group0"="S-1-5-21-3959489222-1251720881-413830006-513"

    "Group1"="S-1-1-0"

    "Group2"="S-1-5-32-546"

    "Group3"="S-1-5-32-545"

    "Group4"="S-1-5-4"

    "Group5"="S-1-2-1"

    "Group6"="S-1-5-11"

    "Group7"="S-1-5-15"

    "Group8"="S-1-5-113"

    "Group9"="S-1-2-0"

    "Group10"="S-1-5-64-10"

    "Group11"="S-1-16-8192"

    "Count"=dword:0000000c

    Appearently, this key is used by the whoami.exe and others with the same result.

    The group Users="S-1-5-32-545"

    This coding scheme is difficult to edit manually!

    If this user is logged-in, then the same information is also in

    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\GroupMembership]



    I could not found the registry keys used by:

    >net localgroup Users

    >net user





    The "net localgroup someGroup someUser /add" adds someUser to the said not-found key and to

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\someSID]

    However, the "net localgroup someGroup someUser /delete" removes someUser only from the said not-found key and "net localgroup someGroup" reads only from this not-found key.



    Final questions

    What is wrong with "net localgroup someGroup someUser /delete" ?

    How can I remove the membership of localgroup=Users from a user account?

    Note that the goal of a guest account is to give access to a very few folders out of a huge amount of folders.
     
    Koos Elsenaar, Apr 20, 2021
    #2
  3. The command net localgroup someGroup someUser /delete fails.

    Hello Sayan_Gosh,

    Your response is not an answer om my question.

    The command net localgroup Users Visitor /delete

    returned with:

    The command completed successfully.However, the user=Visitor can still access the same folders as the members of the group=Users. As I wrote, inquiries about membership give conflicting results: corrupt registry?

    Moreover, if removal of someUser from the group=Users is not allowed, then this command should do nothing and return an error message.

    I tried to summarize the problem without repeating the evidence that something went wrong. I cannot trust the responses of some commands. My question is not answered!
     
    Koos Elsenaar, Apr 20, 2021
    #3
  4. Yolvi Ell Win User

    Writing "net user name localgroups" changed my password to localgroups

    Locked out of my master drive getting access denied on every fix

    There are three commands that you can use to find out the correct username:

    • net localgroup administrators
    • net localgroup users
    • net localgroup guests

    Don't forget to press Enter after typing them in the Command Prompt. These commands will show the list of the administrator accounts, the standard accounts, and the guest accounts currently on your computer. Your account is very likely a standard user account
    right now, so we suggest trying that first. Once you find your user account, follow step 7 from my earlier post to change it to an administrator account. If your user account isn't listed, please post a screenshot of the results of these commands so that we
    can study it.

    Keep us updated on what happens to your account after following these steps.
     
    Yolvi Ell, Apr 20, 2021
    #4
Thema:

Writing "net user name localgroups" changed my password to localgroups

Loading...
  1. Writing "net user name localgroups" changed my password to localgroups - Similar Threads - Writing net user

  2. Can I use name found with "net localgroup administrators"?

    in Windows 10 Gaming
    Can I use name found with "net localgroup administrators"?: Computer: Dell Laptop 1 yr oldOS: Windows 11 ProWhen I use the Command Prompt "net localgroup administrators"I get the following screen display...Administratorsmlth_xxxxxx axtual name hidden for privacyI am in a jam without any admin rights. An issue that has been fully...
  3. Can I use name found with "net localgroup administrators"?

    in Windows 10 Software and Apps
    Can I use name found with "net localgroup administrators"?: Computer: Dell Laptop 1 yr oldOS: Windows 11 ProWhen I use the Command Prompt "net localgroup administrators"I get the following screen display...Administratorsmlth_xxxxxx axtual name hidden for privacyI am in a jam without any admin rights. An issue that has been fully...
  4. I was messing around with my school PC recently, messing with localgroups and i made a...

    in Windows 10 Gaming
    I was messing around with my school PC recently, messing with localgroups and i made a...: I was messing around with my school PC recently, messing with localgroups and i made a mistake which got my account disabled, i luckily managed to renable it except i wasnt aware of the fact that it would've reset my password and didnt ask to set a new one, so now i cant log...
  5. I was messing around with my school PC recently, messing with localgroups and i made a...

    in Windows 10 Software and Apps
    I was messing around with my school PC recently, messing with localgroups and i made a...: I was messing around with my school PC recently, messing with localgroups and i made a mistake which got my account disabled, i luckily managed to renable it except i wasnt aware of the fact that it would've reset my password and didnt ask to set a new one, so now i cant log...
  6. I was messing around with my school PC recently, messing with localgroups and i made a...

    in Windows Hello & Lockscreen
    I was messing around with my school PC recently, messing with localgroups and i made a...: I was messing around with my school PC recently, messing with localgroups and i made a mistake which got my account disabled, i luckily managed to renable it except i wasnt aware of the fact that it would've reset my password and didnt ask to set a new one, so now i cant log...
  7. system user issuing this command: c:\windows\system32\net1 localgroup administrators

    in Windows 10 Gaming
    system user issuing this command: c:\windows\system32\net1 localgroup administrators: I had alarm in SIEM : T1087:Account Discovery. the user name is either "system" OR xyz$ computer name ending with $.The commands issued are:1 c:\windows\system32\net1 localgroup administrators2 c:\windows\system32\windowspowershell\v1.0\powershell.exe -command...
  8. system user issuing this command: c:\windows\system32\net1 localgroup administrators

    in Windows 10 Software and Apps
    system user issuing this command: c:\windows\system32\net1 localgroup administrators: I had alarm in SIEM : T1087:Account Discovery. the user name is either "system" OR xyz$ computer name ending with $.The commands issued are:1 c:\windows\system32\net1 localgroup administrators2 c:\windows\system32\windowspowershell\v1.0\powershell.exe -command...
  9. I have been tested all the ways of changing username, localgroup administrator passwords in...

    in Windows Hello & Lockscreen
    I have been tested all the ways of changing username, localgroup administrator passwords in...: my hotmail account is disabled of mistyping many times and I used it for Windows 10 logon. To log in, it says my passwords are wrong. I can't reach to my hotmail. How should I do after I have been tested all the ways of changing username, localgroup administrator passwords in...
  10. Localgroup and User

    in Windows 10 Network and Sharing
    Localgroup and User: OS: windows 10 home. local group and users is not displaying, cause of that PostgreSQL is not installing properly error: database clustering failed pls help https://answers.microsoft.com/en-us/windows/forum/all/localgroup-and-user/46dc900b-4e91-4496-9543-390136bdd391