Blog‎ > ‎Active Directory‎ > ‎

Active Directory Useful Script



Windows PowerShell script for AD DS Deployment

# Windows PowerShell script for AD DS Deployment

#

Install-windowsfeature -name AD-Domain-Services –IncludeManagementTools

Import-Module ADDSDeployment

Install-ADDSForest `

-CreateDnsDelegation:$false `

-DatabasePath "C:\Windows\NTDS" `

-DomainMode "Win2012" `

-DomainName "moh10ly.com" `

-DomainNetbiosName "Moh10ly" `

-ForestMode "Win2012" `

-InstallDns:$true `

-LogPath "C:\Windows\NTDS" `

-NoRebootOnCompletion:$false `

-SysvolPath "C:\Windows\SYSVOL" `

-Force:$true






The gadget spec URL could not be found