Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 use a batch file with the following content to activate our windows domain computer after imaging:

slmgr -ato

This works well, but there is a problem: after each command a dialog box appears and the file does not continue until you closed it.

Is there a way to supress the dialog boxes? (on success, not on error). A way so that at least both commands are executed without user intervention would be fine too (it gets boring to walk past 50+ computer and pressing enter on each of them)

share|improve this question
up vote 1 down vote accepted

Try 'start slmgr -ato' in your batch file

share|improve this answer

Calling via cscript also works

cscript C:\Windows\System32\slmgr.vbs /ato
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.