<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/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:weblogs' matching tags 'Windows Server 2008 R2' and 'FSMO'</title><link>http://msmvps.com/search/SearchResults.aspx?q=app:weblogs&amp;tag=Windows+Server+2008+R2,FSMO&amp;orTags=0&amp;o=DateDescending</link><description>Search results for 'app:weblogs' matching tags 'Windows Server 2008 R2' and 'FSMO'</description><dc:language>en-US</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>Using PowerShell to Transfer FSMO Roles</title><link>http://msmvps.com/blogs/ad/archive/2010/08/10/using-powershell-to-transfer-fsmo-roles.aspx</link><pubDate>Tue, 10 Aug 2010 05:00:00 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1775708</guid><dc:creator>BrianM</dc:creator><description>&lt;p&gt;You may be familiar with the traditional ways to transfer FSMO roles but how about by using PowerShell?&amp;#160; By now you should just know that PowerShell can do everything the GUI can do…well at least that is the way it feels to me.&amp;#160; &lt;/p&gt;  &lt;p&gt;If you want to use PowerShell to transfer any of your five FSMO roles (&lt;a href="http://msdn.microsoft.com/en-us/library/cc223752(v=PROT.10).aspx" target="_blank"&gt;PDC Emulater&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/cc223751(v=PROT.10).aspx" target="_blank"&gt;RID Master&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/cc223753(v=PROT.10).aspx" target="_blank"&gt;Infrastructure Master&lt;/a&gt;, &lt;a href="http://msdn.microsoft.com/en-us/library/cc223750(v=PROT.10).aspx" target="_blank"&gt;Domain Naming Master&lt;/a&gt; and &lt;a href="http://msdn.microsoft.com/en-us/library/ff634482(v=PROT.10).aspx" target="_blank"&gt;Schema Master&lt;/a&gt;) then you will first need to import the Active Directory Module into PowerShell.&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;ipmo activedirectory&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;Now that you have the AD module loaded the cmdlet you will use for this is quite large - Move-ADDirectoryServerOperationMasterRole.&amp;#160; Thankfully we have the Get-help cmdlet to help us remember that.&amp;#160; All I need to do is remember move-ad and then I press tab to complete the rest.&amp;#160; There is only one other cmdlet that is similar to it and you just have to remember you are trying to move the FSMO role and not the sever.&lt;/p&gt;  &lt;p&gt;When entering the cmdlet you need to specify the operation master roles to move. the syntax for the five roles are as follows - PDCEmulator, RIDMaster, InfrastructureMaster, SchemaMaster, or DomainNamingMaster. To specify more than one role just separate each role with a comma.&lt;/p&gt;  &lt;p&gt;An example of me moving the RID Master and PDC Emulater to DC2 is as follows:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;&lt;em&gt;Move-ADDirectoryServerOperationMasterRole -Identity &amp;quot;DC2&amp;quot; -OperationMasterRole RIDMaster,PDCEmulator&lt;/em&gt;&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;A feature that I just love in PowerShell is the –WhatIf parameter.&amp;#160; By adding this to your code it will do a dry run and let you know what is going to change if you did the command without that parameter.&lt;/p&gt;  &lt;p&gt;One key thing to note here is that I am NOT seizing the FSMO role.&amp;#160; For that you will need to use NTDSUtil as defined &lt;a href="http://technet.microsoft.com/en-us/library/cc816779(WS.10).aspx" target="_blank"&gt;here&lt;/a&gt;.&lt;/p&gt;</description></item></channel></rss>