Server Core

Tips and Tricks Vol. 4

Some of these may be repeats, but this is a pretty complete list of common tasks an administrator might need to do that either don't have a well known command line tool or a tool at all. A few of these may not work in current builds, such as oclist, but should be in the next build available.

 

To activate:

Cscript slmgr.vbs –ato

 

Determining the computer name, any of the following:

            Set c

            Ipconfig /all

            Systeminfo

 

Rename the Server Core computer:

Domain joined:

Netdom renamecomputer %computername% /NewName:new-name /UserD:domain-username /PasswordD:*

            Not domain joined:

Netdom renamecomputer %computername% /NewName:new-name

 

Changing workgroups:

Wmic computersystem where name=”<computer name>” call  joindomainorworkgroup name=”<new workgroup name>”

 

Install a role or optional feature:

Start /w Ocsetup <packagename>

Note: For Active Directory, run Dcpromo

 

View role and optional feature package names and current installation state:

oclist

 

Start task manager hot-key:

ctrl-shift-esc

 

Logoff of a Terminal Services session:

            Logoff

 

To set the pagefile size:

Disable system pagefile management:

wmic computersystem where name=”<computername>” set AutomaticManagedPagefile=False

Configure the pagefile:

wmic pagefileset where name=”C:\\pagefile.sys” set InitialSize=500,MaximumSize=1000

 

Manually installing a management tool or agent:

Msiexec.exe /i <msipackage>

 

List installed msi applications:

Wmic

            product

 

Uninstall msi applications:

Wmic product get name /value

Wmic product where name=”<name>” call uninstall

 

To list installed drivers:

Sc query type= driver

 

Installing a driver that is not included:

Copy the driver files to Server Core

Pnputil –i –a <path>\<driver>.inf

 

Determining a file’s version:

wmic datafile where name="d:\\windows\\system32\\ntdll.dll" get version

 

List of installed patches:

wmic qfe list

 

Installing a patch:

Wusa.exe <patchname>.msu /quiet

 

Published Monday, December 18, 2006 5:08 PM by amason

Comments

 

LonghornPL said:

Hello.

I would like to add, that in WMIC CPU, we can see, that system properly inform us about multicore and logical CPU.

Best Regards,

Martin Krawczyk

February 5, 2007 4:52 PM
 

ScriptEngine said:

This blog is the missing manual for server core. Thank you

March 17, 2007 5:53 AM
 

The things that are better left unspoken said:

Server Core installations of Windows Server 2008 require a different mindset when it comes to installing

September 19, 2007 4:46 PM
 

-blog-o-rama- said:

Windows Server 2008 - Server Core

February 21, 2008 3:20 PM
 

-blog-o-rama- said:

Windows Server 2008 - Server Core

March 20, 2008 6:22 PM
 

GeeB said:

What commands could be used for these:

- Setting the NIC's duplex speed

- Configuring File & Print Sharing: File vs Network options

July 29, 2008 10:03 AM
Anonymous comments are disabled

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker