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?

link|improve this question

70% accept rate
have you tried setting up a KMS server and avoid having to run slmgr altogether? – Jim B Apr 21 '11 at 12:58
feedback

1 Answer

up vote 3 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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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