title: Batch file, I want to supress the Windows Script Host Pop-Ups
body: <p>I use the MDT (<a href="https://technet.microsoft.com/en-US/windows/dn475741.aspx" rel="nofollow noreferrer">Microsoft Deployment Toolkit</a>) with WDS (<a href="https://technet.microsoft.com/en-US/windowsserver/dd448616.aspx" rel="nofollow noreferrer">Windows Deployment Services</a>) in my organization. I call a CMD-File with <code>cmd /c %scriptroot%\HP_Win_7.bat</code> within the task sequence.</p>
  
  <p>Content of the batch file: </p>
  
  <pre><code>slmgr /ilc c:\support\zertifikate\HP.xrm-ms
  slmgr /ipk 74T2M-DKDBC-788W3-H689G-6P6GT
  slmgr /ato
  </code></pre>
  
  <p>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.</p>
  
  <p>I want a solution to hide those pop-ups or automatically acknowledge them.</p>
  
  <p>The script loads a certificate file and a generic key and activates windows.
  (The Windows-Key is generic, for HP Win 7 PCs)</p>