Loading
Scriptbox
 VBScript Links 
 About VBscript 
 JavaScript Links 
 About JavaScript 
 Powershell Links 
 PSCRIPT the Script Launcher 
 PowerShell Shortcut Keys 
 About Powershell 
     VBScript
    JavaScript
    Powershell
Disclaimer
Contact
Latest 10 Scripts
Script search
  :: { Category } :: 0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ
         

Search Options:  List  Disk  Quota  Entries  

 Content of List Disk Quota Entries.vbs
MD5 Hash: ECC1C4E2BE2956952A5387F9D5538982
' Description: Enumerates disk quota information (including user name, warning and quota limits, and disk space used) for each disk quota entry on a computer.


strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colDiskQuotas = objWMIService.ExecQuery("Select * from Win32_DiskQuota")

For each objQuota in colDiskQuotas
Wscript.Echo "Disk Space Used: " & vbTab & objQuota.DiskSpaceUsed
Wscript.Echo "Limit: " & vbTab & objQuota.Limit
Wscript.Echo "Quota Volume: " & vbTab & objQuota.QuotaVolume
Wscript.Echo "Status: " & vbTab & objQuota.Status
Wscript.Echo "User: " & vbTab & objQuota.User
Wscript.Echo "Warning Limit: " & vbTab & objQuota.WarningLimit
Next

   © 2008 - 2013 Boris Toll      :: Scripts available: 6.481 ::      :: scriptbox.toll.at ::      :: powered by www.toll.at ::
  Google Entries:n/a
  Yahoo Backlinks:n/a
  Live Backlinks:n/a
  del.icio.us Bookmarks:n/a
  Technorati Links:n/a