{"id":468,"date":"2010-11-27T16:00:37","date_gmt":"2010-11-27T16:00:37","guid":{"rendered":"http:\/\/www.edwardsd.co.uk\/work\/?p=468"},"modified":"2013-01-15T16:46:09","modified_gmt":"2013-01-15T16:46:09","slug":"querying-domain-controller-for-fsmo-2","status":"publish","type":"post","link":"https:\/\/www.edwardsd.co.uk\/work\/2010\/11\/querying-domain-controller-for-fsmo-2\/","title":{"rendered":"Querying FSMO roles &#038; ADPREP"},"content":{"rendered":"<p>To find out what domain controller roles are within the organisation:<\/p>\n<p><strong>List all DCs in forest with DN and RDN:<\/strong><\/p>\n<pre lang=\"basic\">DsQuery Server -o rdn -Forest<\/pre>\n<pre lang=\"basic\">DsQuery Server -Forest<\/pre>\n<p><strong>List all the DCs in domain:<\/strong><\/p>\n<pre lang=\"basic\">DsQuery Server -domain domain_name.com<\/pre>\n<p><strong>List all the DCs in domain (that are Global Catalog Servers):<\/strong><\/p>\n<pre lang=\"basic\">DsQuery Server -domain domain_name.com -isgc<\/pre>\n<p><strong>List all DCs in forest (that hold FSMO):<\/strong><\/p>\n<pre lang=\"basic\">DsQuery Server -Forest -hasfsmo schema<\/pre>\n<p>Use the &#8220;&gt;&#8221; to store the output to a text file. The below command will store all the domain controller names in AllDCs.txt.<\/p>\n<pre lang=\"basic\">DsQuery Server -Forest &gt; AllDCs.txt<\/pre>\n<p><strong>List FSMO roles using NETDOM<\/strong><\/p>\n<pre lang=\"basic\">netdom query fsmo<\/pre>\n<p><strong>Adding a new Domain Controller to the Domain.<\/strong><\/p>\n<p><strong>ADPREP commands to upgrade Domain Controllers (In this order)<\/strong><\/p>\n<div>\n<pre lang=\"basic\">ADPREP \/forestprep\r\nADPREP \/domainprep\r\nADPREP \/domainprep \/gpprep\r\nADPREP\u00a0\/rodcprep<\/pre>\n<\/div>\n<div><strong>Guide to Windows Server 2008 ADPREP:\u00a0<\/strong><\/div>\n<div><a title=\"ADPrep Guide\" href=\"http:\/\/www.petri.co.il\/windows-server-2008-adprep.htm\" target=\"_blank\">http:\/\/www.petri.co.il\/windows-server-2008-adprep.htm<\/a><\/div>\n<div><\/div>\n<div><strong>Problems with ADPREP and SYSVOL migration process:<\/strong><\/div>\n<div><a title=\"SYSVOL Migration\" href=\"http:\/\/blogs.technet.com\/b\/filecab\/archive\/2008\/02\/08\/sysvol-migration-series-part-1-introduction-to-the-sysvol-migration-process.aspx\" target=\"_blank\">http:\/\/www.tinyurl.com\/apcwzn<\/a><\/div>\n<div>\n<p><strong>How to view and transfer FSMO roles in Windows Server 2003<\/strong><br \/>\n<a href=\"http:\/\/support.microsoft.com\/kb\/324801\">http:\/\/support.microsoft.com\/kb\/324801<\/a><\/p>\n<p><strong>How do I install Active Directory on my Windows Server 2003 server?<\/strong><br \/>\n<a href=\"http:\/\/www.petri.co.il\/how_to_install_active_directory_on_windows_2003.htm\">http:\/\/www.petri.co.il\/how_to_install_active_directory_on_windows_2003.htm<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To find out what domain controller roles are within the organisation: List all DCs in forest with DN and RDN: DsQuery Server -o rdn -Forest DsQuery Server -Forest List all the DCs in domain: DsQuery Server -domain domain_name.com List all the DCs in domain (that are Global Catalog Servers): DsQuery Server -domain domain_name.com -isgc List [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,13],"tags":[],"class_list":["post-468","post","type-post","status-publish","format-standard","hentry","category-code","category-guide"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pOPt8-7y","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/468","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/comments?post=468"}],"version-history":[{"count":0,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/posts\/468\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/media?parent=468"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/categories?post=468"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.edwardsd.co.uk\/work\/wp-json\/wp\/v2\/tags?post=468"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}