Install-WindowsFeature -Name AD-Domain-Services, DNS -IncludeManagementTools
net user Administrator "P@ssw0rd123!"
Повышение до контроллера домена

Import-Module ADDSDeployment

New-LocalUser -Name "Administrator" `
    -Password (ConvertTo-SecureString "Gfdkjd373497!!!" -AsPlainText -Force) `
    -FullName "Local Administrator" `
    -Description "Учётная запись для установки AD DS"
Enable-LocalUser -Name "Administrator"
net user Administrator /passwordreq:yes
net user Administrator /active:yes
net user Administrator /expires:never
net user Administrator "Gfdkjd373497!!!"
Add-LocalGroupMember -Group "Администраторы" -Member "Administrator"
Set-LocalUser -Name "Administrator" -PasswordNeverExpires $true -AccountNeverExpires $true -Enabled $true