windowsbatch-filevbscriptmdt

Batch file, I want to supress the Windows Script Host Pop-Ups


I use the MDT (Microsoft Deployment Toolkit) with WDS (Windows Deployment Services) in my organization. I call a CMD-File with cmd /c %scriptroot%\HP_Win_7.bat within the task sequence.

Content of the batch file:

slmgr /ilc c:\support\zertifikate\HP.xrm-ms
slmgr /ipk 74T2M-DKDBC-788W3-H689G-6P6GT
slmgr /ato

During execution of the batch file I get 3 pop-ups from Windows Script Host which I have to acknowledge by pressing "OK" or "Enter". The Batch pauses, until I acknowledge the pop-up. If not, the cmd-file pauses.

I want a solution to hide those pop-ups or automatically acknowledge them.

The script loads a certificate file and a generic key and activates windows. (The Windows-Key is generic, for HP Win 7 PCs)


Solution

  • It depends on who is generating the pop-ups. If they are directly generated by the slmgr.vbs script, then you have two simple options: