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

  • What tool did you use to remove the group? – grawity Jul 13 at 23:38
  • Command line net command. – user430836 Jul 14 at 0:01
  • User the GUI through Administrator Tools > Computer Manger – Ramhound Jul 14 at 0:22
  • Can you be more specific? Can't see any relatable entry there. – user430836 Jul 14 at 0:28
  • Using wmic useraccount get domain,name,sid I can see the account I'm trying to recover listed as SID *-1001. – user430836 Jul 14 at 0:46
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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.