Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Determine Which Users are Using the Most Disk Space on a DriveContent of Determine Which Users are Using the Most Disk Space on a Drive.vbsMD5 Hash: BE56CD7AF18729A3A515FDCB0284576E |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") strDrive = "Win32_LogicalDisk.DeviceID=" & chr(34) & "C:" & chr(34) Set colQuotas = objWMIService.ExecQuery _ ("Select * from Win32_DiskQuota Where QuotaVolume = '" & strDrive & "'") For Each objQuota in colQuotas Wscript.Echo "User: "& objQuota.User Wscript.Echo "Disk Space Used: "& objQuota.DiskSpaceUsed Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |