Guest User

Untitled

a guest
Nov 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. $clusterName = 'YourCLusterName'
  2. Get-VM -computername (Get-ClusterNode -Cluster $clusterName).Name |
  3. Get-VMDvdDrive |
  4. Where-Object {$null -ne $_.Path} |
  5. Select-Object VMName,ComputerName,Path |
  6. Out-GridView -PassThru | ForEach-Object {
  7. Set-VMDvdDrive -Path $null -ComputerName $PSItem.ComputerName -VMName $PSItem.VMName -Passthru
  8. }
Add Comment
Please, Sign In to add comment