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



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:



Start task manager hot-key:



Logoff of a Terminal Services session:



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:




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


Comments (7)

  1. Anonymous says:

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

  2. Anonymous says:

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

  3. Anonymous says:

    Windows Server 2008 – Server Core

  4. Dale DU-IT says:

    With Server Core Hyper-V and WSUS most patches can be automatically installed.  However, those that are categorized as "updates" and "update rollups" do not automatically installed.  Is there any way to fix this so that these can also be managed to install automatically?  Is there a simple manual command to enter that will get these patches to come form the web and install?  I’m looking for any solution rather than having to manually download each such update and then individually install them one at a time.  TIA – Dale

  5. Anonymous says:

    Windows Server 2008 – Server Core

  6. GeeB says:

    What commands could be used for these:

    – Setting the NIC’s duplex speed

    – Configuring File & Print Sharing: File vs Network options

  7. 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

Skip to main content