title: Rename PC with WMIC
body: <p>I need to achieve something very simple. As part of a PowerShell script which will be run on several hundred new Windows 7 machines I need to rename them prior to joining them to domain.</p>
  
  <p>I have done some searching, and one common solution seems to be:</p>
  
  <pre><code>wmic computersystem where name="%COMPUTERNAME%" call rename name="NEW-NAME"
  </code></pre>
  
  <p>However, from testing, I get the following error upon execution:</p>
  
  <pre><code>Invalid Verb Switch
  </code></pre>
  
  <p>Is this incorrect? Is there a better alternative (without upgrading PowerShell on the machines)</p>
  
  <p>EDIT: If run through batch, the file returns success, but doesn't actually rename the machine (even after a reboot)</p>