Initial Configuration in Windows Server 2008 Server Core


Set a IPv4 Address:
netsh interface ipv4 set address "Local Area connection" static 10.0.0.9 255.0.0.0 10.0.0.1

Set DNS Servers 
netsh interface ipv4 add dnsservers "Local Area Connection" 10.0.0.1
netsh interface ipv4 add dnsservers "Local Area Connection" 10.0.0.2 index=2

Rename Computer:
netdom renamecomputer <ComputerName> /NewName:<NewComputerName>

Join to Domain:
netdom join <ComputerName> /domain:<DomainName> /userd:<UserName> /passwordd:*

Enable Remote Desktop for Administration:
cscript C:\Windows\System32\Scregedit.wsf /ar 0

Configuring WINRM:
WinRM QuickConfig

Using Winrs:
Winrs -r:myserver cmd

Open Firewall:
Netsh advfirewall firewall set rule group=“<rule group>” new enable=yes
Netsh advfirewall firewall set rule group=“remote administration” new enable=yes
netsh advfirewall set currentprofile settings remotemanagement enable

Show Services:
OCList

Setup DNS Service:
ocsetup DNS-Server-Core-Role
ocsetup DNS-Server-Core-Role/uninstall 

Comentarios