{"id":19454116,"url":"https://github.com/21bshwjt/build_replica_domaincontroller","last_synced_at":"2025-09-03T14:36:58.346Z","repository":{"id":108974088,"uuid":"357666090","full_name":"21bshwjt/Build_Replica_DomainController","owner":"21bshwjt","description":"Build Replica Domain Controller using PowerShell","archived":false,"fork":false,"pushed_at":"2025-02-22T07:31:02.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-22T08:27:49.479Z","etag":null,"topics":["active-directory","adds","powershell","powershell-adminscripts","powershell-script"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/21bshwjt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-13T19:26:11.000Z","updated_at":"2025-02-22T07:31:05.000Z","dependencies_parsed_at":"2024-03-01T12:30:59.575Z","dependency_job_id":"e55b0c03-8d27-4278-81eb-8f86aac361dc","html_url":"https://github.com/21bshwjt/Build_Replica_DomainController","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21bshwjt%2FBuild_Replica_DomainController","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21bshwjt%2FBuild_Replica_DomainController/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21bshwjt%2FBuild_Replica_DomainController/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/21bshwjt%2FBuild_Replica_DomainController/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/21bshwjt","download_url":"https://codeload.github.com/21bshwjt/Build_Replica_DomainController/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240645844,"owners_count":19834493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","adds","powershell","powershell-adminscripts","powershell-script"],"created_at":"2024-11-10T17:08:00.563Z","updated_at":"2025-02-25T10:21:59.426Z","avatar_url":"https://github.com/21bshwjt.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e\n  \u003cimg width=\"45\" src=\"https://github.com/21bshwjt/Build_Replica_DomainController/blob/68e1d154cc2110bdb5dbf74418c9ec60b5bc5024/images/adds.png?raw=true\"\u003e\n  Build Replica DomainController\n  \u003cimg width=\"45\" src=\"https://github.com/21bshwjt/Build_Replica_DomainController/blob/68e1d154cc2110bdb5dbf74418c9ec60b5bc5024/images/adds.png?raw=true\"\u003e\n\u003c/h1\u003e\n\n\n### Prerequisites\n- One existing Domain Controller \n- WinRM \n\nBuilding (DcPromo) a Domain Controller over the network is a pain; mainly when NTDS.DIT size is big. That is a time-consuming activity in replacing an existing Domain Controller.\nThe above code won't take more than 20/25 mins to build a Domain Controller if NTDS.DIT within 10 GB. DSRM password needs to be provided by Admins.\n\n**Use case**: Building a Domain Controller manually is a time-consuming process, typically requiring a minimum of 4 to 5 hours over the network. However, the provided code streamlines this task and can construct a domain controller in under 30 minutes, especially if there is another domain controller present in the local network.\n\n### Notes\n```diff\n# 1. The time required can fluctuate based on the performance of both the VM and the network.\n# 2. Sysvol will automatically reconstruct following a reboot.\n# 3. A manual reboot is needed after the promotion is completed.\n# 4. Additional logs will be created in 'C:\\temp' folder.\n# 5. While the code has undergone multiple successful tests in production, it is advisable to independently validate its performance before deploying it to the production environment.\n# 6. Successfully tested on both On-Premises and Azure Virtual machines.\n```\n### Deploy first DC in your Domain\n```powershell\n#\n# Windows PowerShell script for AD DS Deployment\n#\n\nImport-Module ADDSDeployment\nInstall-ADDSForest `\n-CreateDnsDelegation:$false `\n-DatabasePath \"C:\\Windows\\NTDS\" `\n-DomainMode \"WinThreshold\" `\n-DomainName \"bshwjt.internal\" `\n-DomainNetbiosName \"BSHWJT\" `\n-ForestMode \"WinThreshold\" `\n-InstallDns:$true `\n-LogPath \"C:\\Windows\\NTDS\" `\n-NoRebootOnCompletion:$false `\n-SysvolPath \"C:\\Windows\\SYSVOL\" `\n-Force:$true\n```\n\n```diff\n- Do not forget to remove the IFM Backup once the Domain Controller promotion is completed.\n```\n___________________________________________________________________________________________________________________\n\n- [**Wiki**](https://21bshwjt.github.io/Build_Replica_DomainController/)\n- [**Me@LinkedIn**](https://www.linkedin.com/in/bshwjt/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F21bshwjt%2Fbuild_replica_domaincontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F21bshwjt%2Fbuild_replica_domaincontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F21bshwjt%2Fbuild_replica_domaincontroller/lists"}