The Life of Brian

Active Directory, Group Policies, Server Core and the Life of Brian

Email Notifications

Blog Search Form

Go

Recent Posts

Tags

Disclaimer

  • This blog is provided "AS IS" with no warranties, and confers no rights. This blog contains my own views and does not necessarily reflect the view of my employer.
    Locations of visitors to this page
    Add to Technorati Favorites

Sites I Visit

Archives

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.

Comments

Norm said:

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

# March 28, 2008 9:26 AM

BrianM said:

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.

# March 28, 2008 11:11 AM

The World Simplified is a Virtual World said:

We ran a Hyper-V day at the end of October, and collated a series of useful links and best practice guidance.

# November 24, 2008 3:49 PM

Tom said:

In case you guys have not ran into this tool yet, I thought I would send it your way.Its called SMART Suite for Windows Which provides a GUI for configuring server core platforms. It is much like the "Core Configurator" that was out awhile back, which I am sure you are aware of. This thing has many features including windows updates, firewall, networking, remote access, you name it. Its free you just have to fill out the application below

licensing.portlock.com/.../application

Here is a list of features if you are intersted. Have fun.

Configure display resolution

Clock and time zone configuration

Remote desktop configuration

Firewall Configuration

Windows Updates – No IE necessary

Configure IP address, gateway, subnet mask, DNS

Copy Files/Directories

Map a drive

Perform Windows Repair

Web Browser

Email Client

Screen saver configuration

Enable/Disable drivers and services

Manually load/install drivers

Windows Registry Editor

Command prompt

Configure dual boot systems

Configure bootable USB devices

Configure Language

No installation necessary

Boot bare-metal systems

Configure permission and security settings

# December 16, 2008 12:56 PM