How to change CD ROM Letter?
<p>I want to change letter from D to Z:</p>

<pre><code>Set-WmiInstance -InputObject ( Get-WmiObject -Class Win32_volume -Filter "DriveLetter = 'd:'" ) -Arguments @{DriveLetter='Z:'}
</code></pre>

<p><strong>Error:</strong></p>

<pre>Set-WmiInstance : Cannot bind argument to parameter 'InputObject' because it is
null.
At line:1 char:30
+ Set-WmiInstance -InputObject ( Get-WmiObject -Class Win32_volume -Filter "DriveL ...
+                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Set-WmiInstance], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.SetWmiInstance</pre>