Thursday, March 27, 2008 12:58 PM BrianM

Server Core Commands

It's been quite awhile since my last Server Core blog so I feel obligated to share some of the other findings that I have.  I've been asked several times how to configure TCP/IP settings on a Server Core server.

To configure the IP address we will have to remember (or learn) Netsh.

Configure a Static IP Address on Server Core:

Netsh int ipv4 set address “Local Area Connection” static 10.1.1.10 255.255.255.0 10.1.1.1

Netsh int ipv4 set dnsserver “Local Area Connection” static 10.1.1.5 primary

Netsh int ipv4 set winsserver “Local Area Connection” static 10.1.1.6 primary

Configure a Dynamic (DHCP) IP Address on Server Core:

Netsh int ipv4 set address “Local Area Connection” source=dhcp

Change the name of the network interface on Server Core:

Netsh int set interface name = “Local Area Connection” newname = “Primary Network”

 

And another little handy command that I thought you might like.

List of installed patches:

wmic qfe list

 

Hope that helps those that are in need.

Filed under: ,

# re: Server Core Commands

Friday, March 28, 2008 9:26 AM by Norm

you should compile all these into a single page. I've got a couple of good ones here, you may have already posted them..

Rename the computer

wmic computersystem where name="%computername%" rename name="new-name"

Rename Administrator

wmic UserAccount where Name="Administrator" call Rename Name="new-name"

Disable firewall

netsh firewall set opmode disable

Toggle Remote Desktop on and off

Cscript \windows\system32\scregedit.wsf /ar 0

Enable reduced security for RDP connections

Cscript \windows\system32\scregedit.wsf /cs 0

# re: Server Core Commands

Friday, March 28, 2008 11:11 AM by BrianM

Nice addition Norm.  If you click on the Server Core tag you can see all the posts that I have on Server Core...although I do like your idea.  I think i'll include them all in an article on Adminprep.com.

Leave a Comment

(required) 
(required) 
(optional)
(required)