title: VBscript to run a bat file with elevated privileges
body: <p>Here is my bat file</p>
  
  <pre><code>REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
  REG DELETE "HKLM\Software\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f
  C:\Windows\System32\wuauclt.exe /resetauthorization /detectnow
  C:\Windows\System32\wuauclt.exe /reportnow
  </code></pre>
  
  <p>The bat file doesn't work unless it's run inside an "Administrator Command Prompt"</p>
  
  <p>My question is how can I use a VBScript wrapper to run the bat file as an Admin? </p>
  
  <p>I was trying to run this bat file with SCCM but it didn't work. We used a support incident ticket with Microsoft to find out that we need a VBScript wrapper to launch the bat file as an Admin. </p>