title: Hyper-V Shutdown fails - error 32768
body: <p>I'm in the process of attempting to automate Hyper-V for our dev\test lab.  I downloaded the PSHyperV pack, most of the scripts work however when I attempt to shutdown the machine it fails with the error code 32768.</p>
  
  <p>I also tried the script off Ben's <a href="http://blogs.msdn.com/virtual_pc_guy/archive/2008/01/30/shutting-down-a-hyper-v-virtual-machine.aspx%29" rel="nofollow noreferrer">blog</a>.</p>
  
  <p>However this also failed. </p>
  
  <pre><code>__GENUS          : 2
  __CLASS          : __PARAMETERS
  __SUPERCLASS     :
  __DYNASTY        : __PARAMETERS
  __RELPATH        :
  __PROPERTY_COUNT : 1
  __DERIVATION     : {}
  __SERVER         :
  __NAMESPACE      :
  __PATH           :
  ReturnValue      : 32768
  </code></pre>
  
  <p>Does anyone have any ideas?</p>