Configure Windows Server Core using PowerShell after installation
Ali HENTATI
IT Infrastructure & Blogger "hentati.org" VMware vExpert VCAP-DCV? VCP-NV? MCSE? RHCSA? LPIC3? ITILv3?
Today, I want to share with you how to configure Windows Server Core, with simple commands on powershell,
To do it, you have just to follow those steps :
0- First, you have to go into PowerShell mode,
#Powershell
1- Install VMware Tools : (If the server is Virtual Machine on VMware)
#Psdrive
#D:
#.\Setup.exe
2- 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
3- Allow machine to accept ping :
#Netsh advfirewall firewall add rule name=”hentati.org – Autoriser Ping” protocol=icmpv4 dir=in action=allow
4- Configure DNS :
#Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses 8.8.8.8″
To show the DNS configuration:
#Get-DnsClientServerAddress -InterfaceIndex 12
5- Remane Server :
#Rename-Computer -NewName “Server044” -DomainCredential hentati.org\Admin01 -Restart
6- Integrate the server into Active Directory :
#Add-Computer -DomainName hentati.org -Credential [email protected]
#Restart ! # Shutdown /r /t 2
Those last years, Windows Server Core is more and more used in production plateform, specially for security reasons
I hope this article could be useful and for someones the first step to enter PowerShell world.
You can find more articles on : www.hentati.org
Thanks,
Ali HENTATI