Link to home
Start Free TrialLog in
Avatar of rsnellman
rsnellmanFlag for United States of America

asked on

Is there a way to discover the User Name on an account that was deleted?

Hi,
I was wondering if there was a way to discover the username for an account that was accidentally deleted by the S-1-5-21-........number?  An account was accidentally deleted, but there is still reminence of the account in security permissions of folders, but it only displays the S-1-5-21-.....number of the account.  I would like to know what account this was so I could recreate the user account and reattach it to the folders.

Note: This is not on a domain, it is a locally created account on a Windows 2000 Server for access certain folders.

Thank you for your time.

Have a great day.

Bob
ASKER CERTIFIED SOLUTION
Avatar of Zuhir Elgmati
Zuhir Elgmati
Flag of Libya image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The best way to handle this would be to replace the old SID with that of a new account using the utility SUBINACL.
http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b

For example, the command below replaces a SID with a new account for all files and folders on the C: drive.



subinacl /subdirectories c:\* /replace=S-1-5-21-9618458842-4447384536-25574518-1000=newaccountname

Open in new window

Avatar of rsnellman

ASKER

Thanks very very much.  It was your second link you provided that helped me find exactly what I was looking for.  It was easy and best of all, already built-in to the OS.

Thanks again.

Bob
Out of curiosity, which of those links got you a working solution?