Guest User

Untitled

a guest
Nov 14th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. 'BC - enum each datastore, summarise the VMs in each
  2. foreach ($d in get-datastore -name SAN_S*)
  3. {
  4. write-host "======DATASTORE====="$d; get-vm -datastore $d |select-object name,NumCpu,MemoryMB,@{Name="GBProvisioned";expression={[math]::Truncate($_.ProvisionedSpaceGB)}}|ft
  5. }
Add Comment
Please, Sign In to add comment