I am setting up a new Windows Server Technical Preview that I will name VMM01 and later will be added to a domain, so in that server I launched PowerShell to set a static IP Address and rename the server. Here are the steps:

IP Configuration

  • Type Get-NetIPConfiguration to get the information needed like, InterfaceAlias, InterfaceIndex and InterfaceDescription for setting up the new configuration.

Get-NetIPConfiguration

PS C:\Users\Administrator> Get-NetIPConfiguration

InterfaceAlias : Ethernet
InterfaceIndex : 3
InterfaceDescription : Microsoft Hyper-V Network Adapter
NetProfile.Name : Network
IPv4Address : <IP Address>
IPv6DefaultGateway :
IPv4DefaultGateway : <Gateway IP Address>
DNSServer : <DNS IP Address>

Next input the following command.

New-NetIPAddress -InterfaceIndex 3 -IPAddress <IP Address> -AddressFamily IPv4 -DefaultGateway <Gateway IP Address> -PrefixLength 24

Now set the DNS Server, type:

Set-DnsClientServerAddress “Ethernet” -ServerAddresses <DNS IP Address>

Rename Computer

Back in PowerShell type:

Rename-Computer -NewName <ComputerName>

RenameComputer

Then restart your computer, after the restart, you can now add the server to a domain, see Windows Server Technical Preview: Join to a Domain with PowerShell.

Leave a Reply

Trending

Discover more from LABDEMO

Subscribe now to keep reading and get access to the full archive.

Continue reading