Configure Windows Core PowerShell On Virtual Machine after installation

First of all, you have to go into PowerShell mode,

#powershell

 

  1. install VMware Tools :
#psdrive

#d:

#.\setup.exe

 

  1. 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

 

  1. Allow machine accept ping :
netsh advfirewall firewall add rule name="hentati.org – Autoriser Ping" protocol=icmpv4 dir=in action=allow

 

  1. Configure DNS:
Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses 8.8.8.8"

Get-DnsClientServerAddress -InterfaceIndex 12

 

  1. Remane Server:
C:\> Rename-Computer -NewName "Server044" -DomainCredential hentati.org\Admin01 -Restart

 

  1. Integrate AD:
Add-Computer -DomainName hentati.org -Credential Administrateur@hentati.org

restart ! # Shutdown /r /t 2