⭐⭐How to promote a Domain controller with a single powershell command

  Рет қаралды 42

HACKSHIELD23

HACKSHIELD23

Ай бұрын

How to promote a Domain controller with a single powershell command
---------------------------------------------------------------------------------------------------------------------
Configurar la red
$ipAddress = "10.0.0.16"
$prefixLength = 24
$gateway = "10.0.0.1"
$dnsServer = "127.0.0.1"
$interfaceAlias = (Get-NetAdapter | Where-Object { $_.Status -eq "Up" }).InterfaceAlias
Configura la dirección IP
New-NetIPAddress -IPAddress $ipAddress -PrefixLength $prefixLength -InterfaceAlias $interfaceAlias -DefaultGateway $gateway
Configura el servidor DNS
Set-DnsClientServerAddress -InterfaceAlias $interfaceAlias -ServerAddresses $dnsServer
Asegúrate de que la configuración de red esté completa antes de continuar
Start-Sleep -Seconds 10
Crear la contraseña de modo seguro como SecureString
$securePassword = ConvertTo-SecureString -String "S***3331404" -AsPlainText -Force
Instalar AD DS y configurar el bosque
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "CONTOCSO.LOCAL" `
-DomainNetbiosName "CONTOCSO" `
-ForestMode "WinThreshold" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $securePassword `
-Force:$true

Пікірлер
Beautiful gymnastics 😍☺️
00:15
Lexa_Merin
Рет қаралды 14 МЛН
ТАМАЕВ УНИЧТОЖИЛ CLS ВЕНГАЛБИ! Конфликт с Ахмедом?!
25:37
THEY made a RAINBOW M&M 🤩😳 LeoNata family #shorts
00:49
LeoNata Family
Рет қаралды 42 МЛН
Windows Arm PCs could be SO much better
9:01
Jeff Geerling
Рет қаралды 153 М.
Linux File System/Structure Explained!
15:59
DorianDotSlash
Рет қаралды 4 МЛН
Real reason behind Microsofts blue screen of Death
9:28
Hitesh Choudhary
Рет қаралды 111 М.
How to Disable Sophos Without Admin? | Antivirus Tales
3:28
Antivirus Tales
Рет қаралды 17
12 GREAT command line programs YOU recommended!
16:25
The Linux Experiment
Рет қаралды 241 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 633 М.
Why You Can't Visit 💀🎺.com
8:50
Dev Detour
Рет қаралды 581 М.
Learn Microsoft Active Directory (ADDS) in 30mins
36:26
Andy Malone MVP
Рет қаралды 853 М.
How NVIDIA just beat every other tech company
9:20
Mrwhosetheboss
Рет қаралды 1,3 МЛН
Easy Art with AR Drawing App - Step by step for Beginners
0:27
Melli Art School
Рет қаралды 15 МЛН
Battery  low 🔋 🪫
0:10
dednahype
Рет қаралды 12 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,8 МЛН
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 59 МЛН
Худшие кожаные чехлы для iPhone
1:00
Rozetked
Рет қаралды 975 М.