Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


September 2007

Recovering a Deleted Account


RSS
Subscribe to Windows IT Pro | See More Active Directory (AD) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Ask the Experts

I mistakenly deleted a user account and only that account has access to certain resources? Can I change another account's SID to the SID of the deleted account?
When an object (e.g., a user account) is created, the OS gives it an SID, which is stored in the objectSid attribute of the object. If you try to modify the attribute, even when running in the local system context, you receive the error message that Figure 1 shows.

Essentially, the SID is owned by the system, and a user can't change it to a particular value. The ability to do so would create a security vulnerability because changing the SID on an object could give it access rights that it shouldn't have.

If you have a system state backup, you can perform an authoritative restore of the deleted object, and the restored object will have its original SID. (For more information about authoritative restores, see the Webexclusive article "How can I perform an authoritative restoration of Active Directory (AD) in Windows Server 2003?" December 2003, InstantDoc ID 41170.

If no system state backup is available, and if the resource that you're trying to obtain access to is a file, an Administrator can take ownership of the file then set whatever permissions are needed. If the item is an AD object or a service that uses AD, the Administrator can use the ADSIedit tool (which is part of the Windows 2000 and later support tools) to take ownership, then set access permissions.

If you deleted the account within the last 60 days, it's not actually gone from AD. Deleted objects are marked with a tombstone prior to removal from the directory to allow replication of their deleted state throughout the enterprise. The Sysinternals Adrestore utility, which you can download at http://www.sysinternals.com, will restore the tombstoned objects.
—John Savill

End of Article



Reader Comments

You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
CES 2009: Ballmer Announces Windows 7, Windows Live, Live Search Milestones

During his first-ever Consumer Electronics Show (CES) 2009 keynote address last night in Las Vegas, Microsoft CEO Steve Ballmer announced the pending public availability of a feature-complete Windows 7, the final version of Windows Live Essentials, and ...

10 Reasons to Deploy Windows Vista

The decision to upgrade your XP systems to Vista is simple when you consider features such as easier backup, a great desktop search, and vastly improved security options. ...

10 Reasons Not to Deploy Windows Vista

The decision to upgrade to Vista has to make business sense, but many companies find the costs in training and application compatibility problems outweigh any benefits Vista brings. ...


Active Directory (AD) Whitepapers Sustainable Compliance: How to reconnect compliance, security and business goals

Managing Unix/Linux with Microsoft System Center Operations Manager 2007 Cross Platform Extensions Beta

Addressing the Insider Threat with NetIQ Security and Administration Solutions

Related Events Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Cloud Computing Forum: Integrating Software, Server and Storage as a Service into Your Enterprise IT Delivery Model

Virtualization Forum: Optimizing Storage, Networks, Desktops, and Security

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

Keeping Your Business Safe from Attack: Monitoring and Managing Your Network Security

Windows 2003: Active Directory Administration Essentials

Related Active Directory (AD) Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2009 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing