{"id":8169,"date":"2012-07-26T21:32:40","date_gmt":"2012-07-26T21:32:40","guid":{"rendered":"http:\/\/tajdini.net\/blog\/2012\/07\/26\/remove-domain-controller\/"},"modified":"2012-07-26T21:32:40","modified_gmt":"2012-07-26T21:32:40","slug":"remove-domain-controller","status":"publish","type":"post","link":"https:\/\/tajdini.net\/blog\/application-and-software-security\/remove-domain-controller\/","title":{"rendered":"\u062d\u0630\u0641 \u06a9\u0631\u062f\u0646 \u06cc\u06a9 DC"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 DCPromo.exe \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 DC \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f. \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 DC \u062f\u0631 \u0648\u0636\u0639\u06cc\u062a \u0646\u0631\u0645\u0627\u0644 \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0645\u062a\u0635\u0644 \u0627\u0633\u062a \u0648 \u0622\u0646 \u0631\u0627 \u062d\u0630\u0641 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c Meta-Data \u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0627\u0632 \u0631\u0648\u06cc Directory \u062d\u0630\u0641 \u0645\u06cc \u06a9\u0646\u062f \u0648 \u06cc\u0627 \u0628\u0647 \u0639\u0628\u0627\u0631\u062a \u062f\u06cc\u06af\u0631\u060c \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0627\u062b\u0631 \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc \u0628\u0631 \u062c\u0627\u06cc \u0646\u0645\u06cc \u06af\u0630\u0631\u062f. \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u06cc\u06a9 Answer File \u0646\u06cc\u0632 \u0628\u0631\u0627\u06cc \u062d\u0630\u0641 DC \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<p dir=\"ltr\" align=\"left\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><code>[DCINSTALL]<br \/>UserName=DOMAIN\\username (in Administrators group of the domain)<br \/>UserDomain=FQDN of user specified by UserName<br \/>Password=password for user specified by UserName<br \/>AdministratorPassword=password will be assigned to local Administrator<br \/>RemoveApplicationPartitions=yes<br \/>RemoveDNSDelegation=yes<br \/>DNSDelegationUserName=DOMAIN\\username with permissions to remove DNS delegation<br \/>DNSDelegationPassword=password for the account<\/code><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u0648 \u0645\u0634\u0627\u0628\u0647 \u0642\u0628\u0644 \u062f\u0633\u062a\u0648\u0631 DCPromo \u0631\u0627 \u0628\u0627 \u0633\u0648\u06cc\u06cc\u0686 unattended \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0627\u0632 \u0633\u0648\u06cc\u06cc\u0686 UninstallBinaries \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644:<\/span><\/p>\n<p dir=\"ltr\" align=\"left\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><code>dcpromo \/uninstallbinaries \/unattend:\"c:\\rodcanswer.txt\"<\/code><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u0627\u06af\u0631 DC \u062f\u0631 \u0632\u0645\u0627\u0646\u06cc \u0628\u0627\u06cc\u062f \u062d\u0630\u0641 \u0634\u0648\u062f \u06a9\u0647 \u0628\u0647 Domain \u0645\u062a\u0635\u0644 \u0646\u06cc\u0633\u062a \u0627\u0632 dcpromo \/forceremoval \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0631\u062f. \u0628\u0647 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u062f\u0631 \u0627\u0635\u0637\u0644\u0627\u062d demotion \u0647\u0645 \u06af\u0641\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f. \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0647\u0634\u062f\u0627\u0631 \u0647\u0627\u06cc \u0645\u062a\u0641\u0627\u0648\u062a\u06cc \u06a9\u0647 \u062a\u0648\u0633\u0637 Wizard \u0627\u0639\u0644\u0627\u0645 \u0645\u06cc \u0634\u0648\u062f \u0631\u0627 \u0628\u0647 \u062f\u0642\u062a \u0645\u0637\u0627\u0644\u0639\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0622\u0646 \u0647\u0627 \u0631\u0627 \u0642\u0628\u0648\u0644 \u06a9\u0646\u06cc\u062f. \u0627\u0632 \u0633\u0648\u06cc\u06cc\u0686 demotefsmo:yes \u0628\u0631\u0627\u06cc \u0631\u062f \u06a9\u0631\u062f\u0646 \u0647\u0634\u062f\u0627\u0631 \u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c \u0647\u0631\u0686\u0646\u062f \u0627\u06a9\u06cc\u062f\u0627 \u062a\u0648\u0635\u06cc\u0647 \u0646\u0645\u06cc \u06af\u0631\u062f\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u0627\u0632 \u0622\u0646\u062c\u0627\u06cc\u06cc \u06a9\u0647 demotion \u0628\u0647 \u0635\u0648\u0631\u062a Force \u0627\u0646\u062c\u0627\u0645 \u0634\u062f\u0647\u060c metadata \u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u062e\u0648\u062f\u06a9\u0627\u0631 \u062d\u0630\u0641 \u0645\u06cc \u0634\u062f\u0646\u062f\u060c \u0647\u0646\u0648\u0632 \u062f\u0631 \u062f\u0627\u06cc\u0631\u06a9\u062a\u0648\u0631\u06cc \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u0646\u062f \u0648 \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0633\u062a\u06cc \u062f\u0631 \u067e\u0631\u0648\u0633\u0647 \u0627\u06cc \u06a9\u0647 \u0628\u0647 \u0622\u0646 \u0627\u0635\u0637\u0644\u0627\u062d\u0627 Clean Up \u0645\u06cc \u06af\u0648\u06cc\u06cc\u0645 \u0627\u0646\u062c\u0627\u0645 \u06af\u0631\u062f\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u062a\u0630\u06a9\u0631: \u067e\u06cc\u0634 \u0627\u0632 \u0639\u0645\u0644\u06cc\u0627\u062a Clean Up \u0644\u0627\u0632\u0645 \u0627\u0633\u062a \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0634\u0648\u0645 \u06a9\u0647 Replication \u0628\u0647 \u0635\u0648\u0631\u062a \u062f\u0631\u0633\u062a\u06cc \u0635\u0648\u0631\u062a \u06af\u0631\u0641\u062a\u0647. \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u0639\u0645\u0644\u06cc\u0627\u062a \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0645\u0634\u06a9\u0644\u0627\u062a \u062c\u0628\u0631\u0627\u0646 \u0646\u0627\u067e\u0630\u06cc\u0631\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u062a\u062f\u06a9\u0631: \u067e\u06cc\u0634 \u0627\u0632 Demotion \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 DC \u062a\u0646\u0647\u0627 GC \u0646\u06cc\u0633\u062a \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0647\u06cc\u0686 Operation Master role \u0631\u0627 \u0628\u0647 \u0639\u0647\u062f\u0647 \u0646\u062f\u0627\u0631\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u062f\u0631 \u0627\u0646\u062c\u0627\u0645 \u0639\u0645\u0644\u06cc\u0627\u062a \u062a\u0648\u0633\u0637 DCPromo \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0627\u0632 \u0631\u0648\u06cc \u0634\u06cc\u0626 NTDS Setting \u06a9\u0647 \u062f\u0631 \u06a9\u0646\u0633\u0648\u0644 Active Directory Sites and Services \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0641\u0631\u0632\u0646\u062f server \u0627\u0633\u062a \u062d\u0630\u0641 \u0645\u06cc \u06af\u0631\u062f\u062f. Attribute \u0647\u0627\u06cc \u0627\u06cc\u0646 \u0634\u06cc\u0626 \u0634\u0627\u0645\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0645\u06cc \u0634\u0648\u062f \u06a9\u0647 \u0645\u0639\u06cc\u0646 \u0645\u06cc \u06a9\u0646\u062f DC \u0628\u0627 Replication Partner \u0647\u0627\u06cc \u062e\u0648\u062f \u0686\u06af\u0648\u0646\u0647 \u062f\u0631 \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u0633\u062a\u060c \u0622\u06cc\u0627 DC \u06cc\u06a9 GC\u0646\u06cc\u0632 \u0647\u0633\u062a \u0648\u2026 . \u062f\u0631 Windows Server 2008 + \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062d\u0630\u0641 \u06a9\u0631\u062f\u0646 \u0634\u06cc\u0626 \u0633\u0631\u0648\u0631 \u062f\u0631 Active Directory Users and Computers \u0645\u06cc \u062a\u0648\u0627\u0646 Meta Data \u0647\u0627\u06cc \u0628\u0627\u0642\u06cc \u0645\u0627\u0646\u062f\u0647 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0631\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><a href=\"http:\/\/files.erfantaheri.com\/textimage\/---DC_404\/IC414478.gif\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-8168\" title=\"IC414478\" alt=\"dc remove\" src=\"https:\/\/tajdini.net\/blog\/wp-content\/uploads\/2012\/07\/dc_remove.gif\" width=\"644\" height=\"380\" style=\"border-width: 0px; margin-right: auto; margin-left: auto; display: block; background-image: none;\" \/><\/a><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u0647\u0645\u0686\u0646\u06cc\u0646 \u0631\u0648\u06cc \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u0628\u0632\u0627\u0631 Ntdsutil \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0639\u0645\u0644\u06cc\u0627\u062a Clean Up \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u06f1) \u062f\u0631 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f Ntdsutil<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">2) \u062f\u0631 Ntdsutil Prompt \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f metadata cleanup<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">3) \u0633\u067e\u0633 \u062f\u0631 metadata cleanup prompt \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/span><\/p>\n<p dir=\"ltr\" align=\"left\"><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\"><code>remove selected server &lt;ServerName&gt; \u06cc\u0627<br \/>remove selected server &lt;ServerName1&gt; on &lt;ServerName2&gt; *<\/code><\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">4) \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0639\u0645\u0644\u06cc\u0627\u062a \u062d\u0630\u0641 \u0631\u0627 \u062a\u0627\u06cc\u06cc\u062f \u0645\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06af\u0631 \u062e\u0637\u0627\u06cc\u06cc \u062f\u0631 \u0627\u0646\u062c\u0627\u0645 \u062d\u0630\u0641 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0631\u062f\u06cc\u062f\u060c \u0627\u062d\u062a\u0645\u0627\u0644\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u06cc \u0627\u0633\u062a \u06a9\u0647 Object \u067e\u06cc\u0634 \u062a\u0631 \u062d\u0630\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">\u06f5) \u0628\u0627 \u0648\u0627\u0631\u062f \u06a9\u0631\u062f\u0646 quit \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062d\u0630\u0641 \u0634\u062f\u0646 \u0635\u062d\u06cc\u062d \u0631\u0627 \u0645\u0648\u0631\u062f \u0628\u0631\u0631\u0633\u06cc \u0642\u0631\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/span><\/p>\n<p><span style=\"font-family: tahoma, arial, helvetica, sans-serif;\">* \u0627\u06af\u0631 \u06cc\u06a9 Replication Partnet \u0628\u0631\u0627\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 DCPromo.exe \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 DC \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f. \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 DC \u062f\u0631 \u0648\u0636\u0639\u06cc\u062a \u0646\u0631\u0645\u0627\u0644 \u0628\u0647 \u0634\u0628\u06a9\u0647 \u0645\u062a\u0635\u0644 \u0627\u0633\u062a \u0648 \u0622\u0646 \u0631\u0627 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8168,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,225,226,229],"tags":[125,131,250,259,204,264],"class_list":["post-8169","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-application-and-software-security","category-governance-risk-and-compliance","category-identity-and-active-directory","category-network-and-protocol-security","tag-active-directory","tag-dns","tag-grc","tag-network-security","tag-nist","tag-persian"],"_links":{"self":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8169","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/comments?post=8169"}],"version-history":[{"count":0,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/posts\/8169\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/media\/8168"}],"wp:attachment":[{"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/media?parent=8169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/categories?post=8169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tajdini.net\/blog\/wp-json\/wp\/v2\/tags?post=8169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}