title: Powershell CIM Method "Delete" is missing in Win32_ShadowCopy?
body: <p>I try to switch from WMI to CIM, but there are methods missing:
  WMI way so select the next best VSS snapshot:</p>
  <p><code>$SnapShot = (Get-WmiObject Win32_ShadowCopy)[0]</code></p>
  <p>And then you have the working method:</p>
  <p><code>$SnapShot.Delete()</code></p>
  <p>However Get-CimInstance does not give me the methods by Design.</p>
  <p><code>$SnapShot = (Get-CimInstance Win32_ShadowCopy)[0]</code> and <code>Get-CimClass -ClassName Win32_ShadowCopy</code> only shows the methods &quot;Create&quot; and &quot;Revert&quot; - Where is the &quot;Delete&quot; method?</p>
  <p>Normally if would be something like <code>Invoke-CimMethod -ClassName Win32_ShadowCopy -MethodName &quot;Delete&quot; -Arguments @{ID=&quot;$SnapShot.ID&quot;}</code>. but no...</p>
  <p>I've tried a lot of combinations to access or even see the &quot;Delete&quot; method, but where is it? WMI is not encouraged to use 'cause it is &quot;old&quot; when CIM is avail, but with CIM there are often methods missing or hidden somewhere non-obvious, like in this example.</p>
  <p>Yes, I can use <code>vssadmin.exe delete shadows /Shadow=$($SnapShot.ID) /Quiet</code> but this is not the clean way, just a dirty workaround.</p>