Local user not part of any usergroup; can't add it to any; account not listed

0

Removed a local user from the administrators group and am getting error 1317 on net command, trying to add it to a user group.

User isn't listed in users gui (cp, settings), but is listed on net user command (with an empty usergroup entry).

User profile content in Explorer and Registry entries are intact.

Is there a way to recover the user account, restoring the profile settings (or copy them to a new account)?

Update:

This is what net command instructs you to do, in order to add a user to a (local)group:
net localgroup <groupname> <username> /ADD.
This repeatedly resulted in net issuing system error 1317 ("The specified account doesn't exist").

This is what solved the issue:
net localgroup <groupname> <computername>\<username> /ADD (NOTE: don't use quotes in groupname, otherwise account will be listed as part of group, but not functionally recognized as such).
"The command was concluded with success". Account is now available and working.

Credit goes to: https://www.thewindowsclub.com/user-accounts-missing-windows

user430836

Posted 2019-07-13T23:30:32.900

Reputation: 13

What tool did you use to remove the group? – user1686 – 2019-07-13T23:38:58.070

Command line net command. – user430836 – 2019-07-14T00:01:26.973

User the GUI through Administrator Tools > Computer Manger – Ramhound – 2019-07-14T00:22:12.863

Can you be more specific? Can't see any relatable entry there. – user430836 – 2019-07-14T00:28:44.180

Using wmic useraccount get domain,name,sid I can see the account I'm trying to recover listed as SID *-1001. – user430836 – 2019-07-14T00:46:50.937

Windows pro? lusrmgr.msc from a run or command window – goofology – 2019-07-14T06:16:10.357

Home. Can't use the snap-in. – user430836 – 2019-07-14T06:33:58.243

Please post a full answer with your solution, if you have found one. – user1686 – 2019-07-15T15:08:54.480

Answers

0

To add a local user to a local group through net command, you need to include computername, as well as username, as below (this isn't stated, or even implied, in net command help):

net localgroup <groupname> <computername>\<username> /ADD

Merely including username will result in system error 1317 ("The specified account doesn't exist").

From: https://www.thewindowsclub.com/user-accounts-missing-windows (NOTE: don't use quotes in groupname, unlike in the link, otherwise account will be listed as part of group, but not functionally recognized as such).

user430836

Posted 2019-07-13T23:30:32.900

Reputation: 13