First of all, you have to go into PowerShell mode,
#powershell
- install VMware Tools :
#psdrive #d: #.\setup.exe
- Configure Network Interface :
Get-NetAdapter (Get the basic properties of network adapters) and also the InterfaceIndex New-NetIPAddress –InterfaceIndex 12 –IPAddress 192.168.1.203 –PrefixLength 24 –DefaultGateway 192.168.1.254
- Allow machine accept ping :
netsh advfirewall firewall add rule name="hentati.org – Autoriser Ping" protocol=icmpv4 dir=in action=allow
- Configure DNS:
Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses 8.8.8.8" Get-DnsClientServerAddress -InterfaceIndex 12
- Remane Server:
C:\> Rename-Computer -NewName "Server044" -DomainCredential hentati.org\Admin01 -Restart
- Integrate AD:
Add-Computer -DomainName hentati.org -Credential Administrateur@hentati.org restart ! # Shutdown /r /t 2