Windows Server Core Configuration

https://docs.microsoft.com/en-us/windows-server/administration/server-core/server-core-administer

Tools

sconfig.cmd

notepad

timedate.cpl

configuring static ip address

Get-NetIPInterface.

New-NetIPaddress -InterfaceIndex 12 -IPAddress 192.0.2.2 -PrefixLength 24 -DefaultGateway 192.0.2.1

Get-NetIPConfiguration

Get-NetIPAddress

ServerAddresses is the IP address of your DNS server.

Set-DNSClientServerAddress –InterfaceIndex 12 -ServerAddresses 192.0.2.4

Set-DNSClientServerAddress –InterfaceIndex 12 -ServerAddresses 192.0.2.4,192.0.2.5

Join a domain

Use the following cmdlets to join a computer to a domain.

Run Add-Computer. You'll be prompted for both credentials to join the domain and the domain name.

If you need to add a domain user account to the local Administrators group, run the following command at a command prompt (not in the PowerShell window):

net localgroup administrators /add <UserName>

Renaming server Run Rename-Computer -ComputerName <new_name>

Activate the server

Run slmgr.vbs –ipk<productkey>. Then run slmgr.vbs –ato. If activation succeeds, you won’t get a message.

Note

You can also activate the server by phone, using a Key Management Service (KMS) server, or remotely. To activate remotely, run the following cmdlet from a remote computer:

cscript windows\system32\slmgr.vbs <ServerName> <UserName> <password>:-ato

Configure Windows Firewall

Resolution

Set-DisplayResolution 1680 1050

tzutil /l

set-timezone "Pakistan Standard Time" set-date -date "6/17/2021 9:24 PM"

Get-NetAdapter

Get-NetIPAddress -InterfaceAlias

Previous