title: How to set WMI property values?
body: <p>I want to modify some properties on a VM. I'm using AutoIt to hide them where I can. Seems some of these are read only under <a href="https://msdn.microsoft.com/en-us/library/aa394102(v=vs.85).aspx" rel="nofollow noreferrer"><code>Win32_ComputerSystem</code></a>, but it seems possible to set them using PowerShell.</p>
  
  <pre><code>$objWMIService = ObjGet ("winmgmts:\\" &amp; $com &amp; "\root\CIMV2")
  $colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_Processor", "WQL", 0x30)       
  </code></pre>
  
  <p>I can read the property values in a loop but I'm not sure if it's possible to write my own values back in. Is this doable using AutoIt?</p>