Guest User

Untitled

a guest
Aug 10th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. Get-VM -ComputerName (Get-ClusterNode) |
  2. ForEach-Object {Get-VHD -ComputerName $_.ComputerName -VMId $_.VMId} |
  3. Select path,computername,vhdtype,@{label='Size(GB)';expression={$_.filesize/1gb -as [int]}} |
  4. Export-Csv -Path C:\temp\result.csv
Add Comment
Please, Sign In to add comment