to get disk usage and quota statistics

please use the script o get disk usage for all your quotas configured

## to get disk usage and quota statistics
import ctypes
from subprocess import Popen, PIPE
class disable_file_system_redirection:
    _disable = ctypes.windll.kernel32.Wow64DisableWow64FsRedirection
    _revert = ctypes.windll.kernel32.Wow64RevertWow64FsRedirection
    def __enter__(self):
        self.old_value = ctypes.c_long()
        self.success = self._disable(ctypes.byref(self.old_value))
    def __exit__(self, type, value, traceback):
        if self.success:
drName = 'C:' ## Here you can modify your drive name if you want to set drive 'E:'
with disable_file_system_redirection():
    _obj = Popen('fsutil quota query '+drName, stdout=PIPE, stderr=PIPE, shell=True)
result = _obj.communicate()
output, error = result
for line in result:
    if line != '':
        print line

drName = ‘C:’ - the value of this variable can be changed as per your requirement.

sample output: