Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are currently in the process of setting up several Windows HPC clusters using Windows 2008 HPC R2. We would like to be able to perform Windows licensing commands across the clusters via the command line, i.e. display the current license status, install a product key, re-arm a trial key, etc.

Unfortunately, the slmgr command always opens a dialog box to display its output, rather than writing to standard output. This is extremely unpleasant, as we'd like to be able to run parallel operations on the license status using the HPC tools.

Can anyone suggest a command for managing Windows licenses that works completely on the command line?

share|improve this question
have you tried setting up a KMS server and avoid having to run slmgr altogether? – Jim B Apr 21 '11 at 12:58
up vote 5 down vote accepted

Apologies for answering this myself: we encountered the answer just a minute ago.

It turns out that if you call slmgr with cscript, the output will go to the command line rather than a dialog box. So you want a command like,

cscript slmgr c:\windows\system32\slmgr.vbs -dli

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.