//
you're reading...
PowerShell, Windows Server 10, Windows Server Technical Preview

Windows Server Technical Preview: Set Network Configuration and Rename Computer

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.

Advertisements

Discussion

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: