Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $clusterName = 'YourCLusterName'
- Get-VM -computername (Get-ClusterNode -Cluster $clusterName).Name |
- Get-VMDvdDrive |
- Where-Object {$null -ne $_.Path} |
- Select-Object VMName,ComputerName,Path |
- Out-GridView -PassThru | ForEach-Object {
- Set-VMDvdDrive -Path $null -ComputerName $PSItem.ComputerName -VMName $PSItem.VMName -Passthru
- }
Add Comment
Please, Sign In to add comment