Welcome to TechNet Blogs Sign in | Join | Help

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

# re: Tips and Tricks Vol. 4

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

Monday, February 05, 2007 4:52 PM by LonghornPL

# re: Tips and Tricks Vol. 4

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

Saturday, March 17, 2007 5:53 AM by ScriptEngine

# Getting installation files onto Server Core

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

Wednesday, September 19, 2007 4:46 PM by The things that are better left unspoken

# Windows Server 2008 - Server Core

Windows Server 2008 - Server Core

Thursday, February 21, 2008 3:20 PM by -blog-o-rama-

# Windows Server 2008 - Server Core

Windows Server 2008 - Server Core

Thursday, March 20, 2008 6:22 PM by -blog-o-rama-

# re: Tips and Tricks Vol. 4

What commands could be used for these:

- Setting the NIC's duplex speed

- Configuring File & Print Sharing: File vs Network options

Tuesday, July 29, 2008 10:03 AM by GeeB

# re: Tips and Tricks Vol. 4

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

Tuesday, October 28, 2008 3:30 PM by Dale Unroe
Anonymous comments are disabled
 
Page view tracker