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.

3 Comments

  1. Norm says:

    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 windowssystem32scregedit.wsf /ar 0

    Enable reduced security for RDP connections
    Cscript windowssystem32scregedit.wsf /cs 0

  2. BrianM says:

    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.

  3. Tom says:

    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

    http://licensing.portlock.com/products/smart_suite/windows/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

Leave a comment

*