Jump to content

disk quota auslesen


Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Recommended Posts

Description

Enumerates disk quota information (including user name, warning and quota limits, and disk space used) for each disk quota entry on a computer. Requires Windows XP or Windows .NET Server.

 

Script Code

-------------------

 

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

 

----

Cu

blub

Link to comment
Der letzte Beitrag zu diesem Thema ist mehr als 180 Tage alt. Bitte erstelle einen neuen Beitrag zu Deiner Anfrage!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...