Monday, July 19, 2010

Windows 2008 Core Commands

So you installed Server 2008 Core And here’s what you’ve got:

core

Well now what? To start, check out the commands below:

Show NICs
netsh interface ipv4 show interfaces

Show NIC Configuration
netsh interface ipv4 show config

Configure Static IP
netsh interface ipv4 set address name=”2” source=static address=xxx.xxx.xxx.xxx mask=xxx.xxx.xxx.xxx gateway xxx.xxx.xxx.xxx

Add Primary DNS
netsh interface ipv4 add dnsserver name=”2” address=xxx.xxx.xxx.xxx index=1

Add Secondary DNS
netsh interface ipv4 add dnsserver name=”2” address=xxx.xxx.xxx.xxx index=2

Rename server
netdom renamecomputer oldname /NewName:newname

Add to Domain
netdom join servername /domain:domainname /userd:domain\username
/passwordd:*

Activate the Server
cscript slmgr.vbs –ato

Enable Remote Desktop for Administration
cscript scregedit.wsf /AR 0

Allow Remote Admin through Firewall
netsh advfirewall Firewall set rule group=”Remote Administration” new enable=yes

Restart server
shutdown /r t 0

Disable Interface
netsh interface set interface “Local Area Connection 2” disabled
Delete DNS entries
netsh interface delete dnsserver name=”2” address=all

No comments: