<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://powershell.com/cs/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results for 'app:forums' matching tags 'Active Directory' and 'Recover'</title><link>http://powershell.com/cs/search/SearchResults.aspx?q=app:forums&amp;tag=Active+Directory,Recover&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:forums' matching tags 'Active Directory' and 'Recover'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 (Build: 30929.2835)</generator><item><title>Recovering Deleted User Ad account throught Active Directory powershell</title><link>http://powershell.com/cs/forums/thread/2621.aspx</link><pubDate>Mon, 01 Jun 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">f421715f-7aba-45f0-8a8d-44de5318a3a7:2621</guid><dc:creator>smtpport25.wordpress</dc:creator><description>&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;span style="color:#810081;"&gt;&lt;a href="http://smtpport25.wordpress.com/2009/04/22/recovering-deleted-user-ad-account-throught-active-directory-powershell/"&gt;http://smtpport25.wordpress.com/2009/04/22/recovering-deleted-user-ad-account-throught-active-directory-powershell/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://powershell.com/cs/forums/AddPost.aspx?ForumID=77"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;We can recover any Active Directory deleted object with in the Tombstone period.&lt;br /&gt;Tombstone lifetime can be found in active directory using below steps&lt;/p&gt;
&lt;div class="snap_preview"&gt;
&lt;p&gt;&amp;bull; Load the ADSIEdit snap-in by navigating to start menu, programs, Windows 2000 Support Tools, Tools, ADSI Edit, or simply type adsiedit.msc at the run command.&lt;br /&gt;&amp;bull; Navigate down to CN=Directory Service, through Configuration, CN=Configuration,DC=domainName,DC=com, CN=Services, CN=Windows NT, right-click and choose properties.&amp;nbsp;&lt;br /&gt;&amp;bull; scroll down to tombstoneLifetime. This will have Tombstone period&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get-QADUser -Tombstone&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Will get the list of user accounts which are Deleted and residing in Tombstone&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get-QADUser -Tombstone &amp;lt;name&amp;gt; |restore-QADDeletedObject&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Will restore the user object in to the OU LOSTANDFOUND&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get-QADUser -Tombstone -LastKnownParent &amp;lsquo;&amp;lt;DN of container&amp;gt;&amp;rsquo;&lt;br /&gt;&lt;/strong&gt;Restores all user accounts that were deleted from a particular container to OU LOSTANDFOUND.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;strong&gt;Get-QADUser &amp;ndash;Tombstone &amp;ndash;LastChangedOn (get-date -year 2008 -month 9 -day 1)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Restores all user accounts that were deleted on September 1, 2008&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get-QADUser &amp;ndash;Tombstone&amp;nbsp; &amp;lt;username&amp;gt; | fl&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Gives the complete details of the -Tombstone account which can help in finding detained information of the Tombstoned account&lt;/p&gt;
&lt;/div&gt;</description></item></channel></rss>