Page 1 of 1

Mapped Drive Freespace Conundrum

Posted: Thu Oct 03, 2013 9:39 am
by IanUoY
I can quite easily extract freespace of any mapped drives where the mapped drive is \\server\sharename. However, the particular drives I want to report on is mapped as \\server\sharename\dirname

In this case the size is fine using eg

Get-WMIObject Win32_LogicalDisk -filter "DeviceID='P:'"

However, the freespace reported is the size of the top level share by the looks of it, as it is massively more than the total size of the drive.

Unfortunately we are running Windows Server 2008 R2 and so cannot use the new fsrm cmdlets in Server 2012.

I did notice though that Windows Explorer correctly displays the freespace, which I assume it gets by looking at the quota.

So, my question - can I access the servers quota's remotely or is there a way of grabbing the information as show in Windows Explorer.