<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>..::\\ www.christiano.ch //::.. &#187; Active Directory</title>
	<atom:link href="http://www.christiano.ch/wordpress/category/microsoft/active-directory/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christiano.ch/wordpress</link>
	<description>christiano.ch blog - personal knowledge base, news, memoires et cetera</description>
	<lastBuildDate>Fri, 06 Jan 2012 15:28:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
		<item>
		<title>Recovering accidentally deleted Items in Active Directory</title>
		<link>http://www.christiano.ch/wordpress/2009/11/18/recovering-accidentally-deleted-items-in-active-directory/</link>
		<comments>http://www.christiano.ch/wordpress/2009/11/18/recovering-accidentally-deleted-items-in-active-directory/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 06:37:34 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/2009/11/18/recovering-accidentally-deleted-items-in-active-directory/</guid>
		<description><![CDATA[Well, it could happen that you delete an Active Directory Objects / Accounts (like a User, Group, Computer whatever object) accidentally. In the past i used ADSIEdit.msc to restore the object. Well, this is a not so straight-forward procedure and &#8230; <a href="http://www.christiano.ch/wordpress/2009/11/18/recovering-accidentally-deleted-items-in-active-directory/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<table border="0" cellspacing="0" cellpadding="2" width="675">
<tbody>
<tr>
<td valign="top" width="554">Well, it could happen that you delete an Active Directory Objects / Accounts (like a User, Group, Computer whatever object) accidentally. In the past i used ADSIEdit.msc to restore the object. Well, this is a not so straight-forward procedure and not that easy to accomplish. Lately I&#8217;ve stumbled over a page from guy/blog called <a title="Windowmaker&#39;s blog" href="http://blogs.microsoft.co.il/blogs/guyt/archive/2007/12/15/adrestore-net-rewrite.aspx" target="_blank">Windowmaker</a>&#160;</td>
<td valign="top" width="120"><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/11/Logo_ActiveDirectory.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="Logo_ActiveDirectory" border="0" alt="Logo_ActiveDirectory" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/11/Logo_ActiveDirectory_thumb.png" width="240" height="110" /></a> </td>
</tr>
</tbody>
</table>
<p> <span id="more-763"></span>
<p>here’s a Screenshot of ADRestore.NET</p>
<p><a href="http://www.christiano.ch/wordpress/wp-content/uploads/2009/11/ADRestore.NET_.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ADRestore.NET" border="0" alt="ADRestore.NET" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/11/ADRestore.NET_thumb.png" width="620" height="433" /></a> </p>
<h1>Links</h1>
<p>&#160;</p>
<p><a title="Windowsmaker’s blog" href="http://blogs.microsoft.co.il/blogs/guyt/archive/2007/12/15/adrestore-net-rewrite.aspx" target="_blank">Windowsmaker’s blog</a></p>
<p><a title="Download ADRestore.NET" href="http://blogs.microsoft.co.il/files/folders/guyt/entry40811.aspx" target="_blank">Download ADRestore.NET</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Recovering+accidentally+deleted+Items+in+Active+Directory+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D763" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Recovering+accidentally+deleted+Items+in+Active+Directory+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D763" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/11/18/recovering-accidentally-deleted-items-in-active-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PowerShell: Get SID from AD (Active Directory) User / Group using PowerShell</title>
		<link>http://www.christiano.ch/wordpress/2009/08/26/powershell-get-sid-from-ad-active-directory-user-group-using-powershell/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/26/powershell-get-sid-from-ad-active-directory-user-group-using-powershell/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:57:08 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=467</guid>
		<description><![CDATA[To get the SID of an AD Object (User, Group, whatever) quickly, i recommend using PowerShell. When trying to get the SID using ADUC (Active Directory User and Computer Snap-in), you can not copy/paste the SID as a string since &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/26/powershell-get-sid-from-ad-active-directory-user-group-using-powershell/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To get the SID of an AD Object (User, Group, whatever) quickly, i recommend using PowerShell.    <br />When trying to get the SID using ADUC (Active Directory User and Computer Snap-in), you can not copy/paste the SID as a string since it is stored in a binary format.</p>
<p> <span id="more-467"></span><img class="size-full wp-image-468" title="ActiveDirectory_AttributeEditor_ObjectSID" alt="ActiveDirectory_AttributeEditor_ObjectSID" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/ActiveDirectory_AttributeEditor_ObjectSID.png" width="404" height="466" />
</p>
<img class="size-full wp-image-469" title="ActiveDirectory_AttributeEditor_ObjectSID_Binary" alt="ActiveDirectory_AttributeEditor_ObjectSID_Binary" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/ActiveDirectory_AttributeEditor_ObjectSID_Binary.PNG" width="381" height="329" />
<p>Now, to get the SID (Security Identifier) for a specific (AD) Active Directory Object using PowerShell use:</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #800080;">$AdObj</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">New-Object</span> System.Security.Principal.NTAccount<span style="color: #000000;">&#40;</span><span style="color: pink;">&amp;</span>quot;ObjectName<span style="color: pink;">&amp;</span>quot;<span style="color: #000000;">&#41;</span>
<span style="color: #800080;">$strSID</span> <span style="color: pink;">=</span> <span style="color: #800080;">$AdObj</span>.Translate<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#91;</span>System.Security.Principal.SecurityIdentifier<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span>
<span style="color: #800080;">$strSID</span>.Value</pre></div></div>

<p>
  <br /><img class="size-full wp-image-500" title="PowerShell_Get_SID" alt="PowerShell_Get_SID" src="http://www.christiano.ch/wordpress/wp-content/uploads/2009/08/PowerShell_Get_SID.PNG" width="728" height="112" /></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=PowerShell%3A+Get+SID+from+AD+%28Active+Directory%29+User+%2F+Group+using+PowerShell+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D467" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=PowerShell%3A+Get+SID+from+AD+%28Active+Directory%29+User+%2F+Group+using+PowerShell+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D467" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/26/powershell-get-sid-from-ad-active-directory-user-group-using-powershell/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Active Directory, Transfer Schema Master, Domain Naming Master, PDC, RID Master, Infrastructure Master Role using NtdsUtil.exe</title>
		<link>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-schema-master-domain-naming-master-pdc-rid-master-infrastructure-master-role-using-ntdsutil-exe/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-schema-master-domain-naming-master-pdc-rid-master-infrastructure-master-role-using-ntdsutil-exe/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 10:39:56 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=188</guid>
		<description><![CDATA[Transferring a FSMO (Flexible Single Master Operations) Role using the NtdsUtil.exe is pretty easy. Start a Command Line (cmd.exe) C:\&#62;ntdsutil.exe Switch to Roles context ntdsutil: Roles Switch to Connections context fsmo maintenance:Connections Optionally you can specify the credentials used to &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-schema-master-domain-naming-master-pdc-rid-master-infrastructure-master-role-using-ntdsutil-exe/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Transferring a FSMO (Flexible Single Master Operations) Role using the NtdsUtil.exe is pretty easy.</p>
<p>Start a Command Line (cmd.exe)<br />
C:\&gt;<code>ntdsutil.exe</code><br />
Switch to <em>Roles</em> context<br />
<code>ntdsutil: Roles</code><span id="more-188"></span><br />
Switch to <em>Connections </em>context<br />
<code>fsmo maintenance:Connections</code><br />
<em>Optionally </em>you can specify the <em>credentials </em>used to connect the the server<br />
The format is <domain> <username>
<password>
<code>server connections:set creds MYDOMAIN MYUSERNAME MYPASSWORD</code><br />
Connect to the specific server<br />
<code>connect to server SERVERNAME</code><br />
Quit this context<br />
<code>server connections: quit</code><br />
Now you can transfer the FSMO Roles using the <em>transfer</em> command.<br />
<code>Transfer Schema Master</code></p>
<p>possible roles to transfer are:<br />
<code>Transfer domain naming master</code><br />
<code>Transfer infrastructure master</code><br />
<code>Transfer PDC</code><br />
<code>Transfer RID master</code><br />
<code>Transfer schema master</code></p>
<p>To get a list of all the FSMO Roles for a specific server, read <a href="http://www.christiano.ch/wordpress/2009/08/06/active-directory-list-fsmo-roles-of-a-domain-controller-dc-using-ntdsutil-exe/" target="_self">here &#8211; List FSMO Roles of a Domain Controller</a></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+Transfer+Schema+Master%2C+Domain+Naming+Master%2C+PDC%2C+RID+Master%2C+Infrastructure+Master+Role+using+Nt...+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D188" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+Transfer+Schema+Master%2C+Domain+Naming+Master%2C+PDC%2C+RID+Master%2C+Infrastructure+Master+Role+using+Nt...+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D188" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-schema-master-domain-naming-master-pdc-rid-master-infrastructure-master-role-using-ntdsutil-exe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Active Directory, List FSMO Roles of a Domain Controller (DC) using NtdsUtil.exe</title>
		<link>http://www.christiano.ch/wordpress/2009/08/06/active-directory-list-fsmo-roles-of-a-domain-controller-dc-using-ntdsutil-exe/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/06/active-directory-list-fsmo-roles-of-a-domain-controller-dc-using-ntdsutil-exe/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 10:13:42 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=190</guid>
		<description><![CDATA[To list the FSMO (Flexible Single Master Operations) Roles of a Microsoft Active Directory Domain Controller (DC) using NtdsUtil.exe: Start a command prompt (cmd.exe) Start NtdsUtil.exe C:\&#62;NtdsUtil.exe Switch to Roles context ntdsutil:Roles Swtich to Connections context fsmo maintenance:Connections Connect to &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/06/active-directory-list-fsmo-roles-of-a-domain-controller-dc-using-ntdsutil-exe/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To list the FSMO (Flexible Single Master Operations) Roles of a Microsoft Active Directory Domain Controller (DC) using NtdsUtil.exe:</p>
<p>Start a command prompt (cmd.exe)</p>
<p>Start NtdsUtil.exe<br />
<code>C:\&gt;NtdsUtil.exe</code><br />
Switch to <em>Roles </em>context<br />
<code>ntdsutil:Roles</code><br />
Swtich to <em>Connections</em> context<br />
<code>fsmo maintenance:Connections</code><span id="more-190"></span><br />
Connect to the server<br />
<code>server connections:Connect to server MYDOMAINCONTROLLER</code><br />
Quit this context<br />
<code>server connections:Quit </code><br />
Select the so called Operation Targer<br />
<code>fsmo maintenance:Select Operation Target</code><br />
Now list the Roles for the Server<br />
<code>select operation target:List roles for connected server</code></p>
<p>that&#8217;s it.</p>
<p>To fully automate these steps, you can use this script (just copy paste it in a .bat or .cmd file and execute it with the servername as the first and only parameter)<br />
<code>@echo off<br />
REM<br />
REM Script to dump FSMO role owners on the server designated by %1<br />
REM<br />
if ""=="%1" goto usage<br />
Ntdsutil roles Connections "Connect to server %1" Quit "select Operation Target"  "List roles for connected server"  Quit  Quit  Quit<br />
goto done<br />
:usage<br />
@echo Please provide the name of a domain controller (i.e. dumpfsmos MYDC)<br />
@echo.<br />
:done<br />
</code></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+List+FSMO+Roles+of+a+Domain+Controller+%28DC%29+using+NtdsUtil.exe+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D190" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+List+FSMO+Roles+of+a+Domain+Controller+%28DC%29+using+NtdsUtil.exe+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D190" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/06/active-directory-list-fsmo-roles-of-a-domain-controller-dc-using-ntdsutil-exe/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Active Directory, Transfer the Schema Master Role of a Windows 2003 Server Domain Controller using the MMC GUI</title>
		<link>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-the-schema-master-role-of-a-windows-2003-server-domain-controller-using-the-mmc-gui/</link>
		<comments>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-the-schema-master-role-of-a-windows-2003-server-domain-controller-using-the-mmc-gui/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 09:46:26 +0000</pubDate>
		<dc:creator>christian</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Microsoft]]></category>

		<guid isPermaLink="false">http://www.christiano.ch/wordpress/?p=178</guid>
		<description><![CDATA[Register the Schmmgmt.dll MMC Snap-in Register the DLL using regsvr32 schmmgmt.dll Transfer the Schema Master Role Run MMC (Microsoft Management Console &#8211; Start &#8211; run &#8211; MMC ) On the File, menu click Add/Remove Snap-in. Click Add. Click Active Directory &#8230; <a href="http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-the-schema-master-role-of-a-windows-2003-server-domain-controller-using-the-mmc-gui/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Register the Schmmgmt.dll MMC Snap-in</strong></p>
<p>Register the DLL using<br />
<code>regsvr32 schmmgmt.dll</code></p>
<p><strong>Transfer the Schema Master Role</strong></p>
<ul>
<li>Run MMC (Microsoft Management Console &#8211; Start &#8211; run &#8211; MMC )</li>
</ul>
<ul>
<li>On the File, menu click Add/Remove Snap-in.</li>
</ul>
<ul>
<li>Click Add.</li>
</ul>
<p><span id="more-178"></span></p>
<ul>
<li>Click Active Directory Schema, click Add, click Close, and then click OK.</li>
</ul>
<ul>
<li>In the console tree, right-click Active Directory Schema, and then click Change Domain Controller.</li>
</ul>
<ul>
<li>Click Specify Name, type the name of the domain controller that will be the new role holder, and then click OK.</li>
</ul>
<ul>
<li>In the console tree, right-click Active Directory Schema, and then click Operations Master.</li>
</ul>
<ul>
<li>Click Change.</li>
</ul>
<ul>
<li>Click OK to confirm that you want to transfer the role, and then click Close.</li>
</ul>
<p>If you get an error like &#8216;the requested fsmo operation failed. the current fsmo holder could not be contacted&#8217; then:</p>
<p>Check your DNS. Often this error messages occurs on Domain Controllers with more than one NIC / IP Address. Check your DNS Reverse Lookup Zones. To create a diagnoses, there is a tool called <em>dcdiag</em>.</p>
<p>You can do a DNS Check using <em>Dcdiag</em>:<br />
(The <em>Dcdiag</em> command-line <em>tool</em> is included when you install Windows Server 2003 <em>Support Tools</em> from the product CD)</p>
<p><code>DCDiag /test:dns</code></p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+Transfer+the+Schema+Master+Role+of+a+Windows+2003+Server+Domain+Controller+using+the+MMC+GUI+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D178" title="Post to Twitter"><img class="nothumb" src="http://www.christiano.ch/wordpress/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/intent/tweet?text=Active+Directory%2C+Transfer+the+Schema+Master+Role+of+a+Windows+2003+Server+Domain+Controller+using+the+MMC+GUI+http%3A%2F%2Fchristiano.ch%2Fwordpress%2F%3Fp%3D178" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.christiano.ch/wordpress/2009/08/06/active-directory-transfer-the-schema-master-role-of-a-windows-2003-server-domain-controller-using-the-mmc-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

