I am trying to fetch disk free space and used space in windows 2008 R2 enterprise edition. However the command fails to get the values. This command works fine in windows 2012 version.
Get-PSDrive -PSProvider FileSystem will fetch below details..
Name Used (GB) Free (GB) Provider ---- --------- --------- -------- C 71.99 166.23 FileSystem H 71.99 166.23 FileSystem
(Get-PSDrive -PSProvider FileSystem).Name - get me the drive names and so I use to fetch the other details.
However the same command does not work for windows 2008 R2 enterprise edition. Any work around for this ?