Re: Disk Quota User Info
From: name (nospam_at_user.com)
Date: 12/19/04
- Next message: name: "Re: Reading file from Temporary Internet Files"
- Previous message: name: "Re: Add HTTP Headers"
- In reply to: Kirk Batzer: "Disk Quota User Info"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 19 Dec 2004 01:31:44 -0500
"account status: 5"
Looks like on of those default
"client server access licenses"
================
Which eh is 5 ?
=============
You better not hang out the window too far.
"Kirk Batzer" <kbatzer@rutgers.edu> wrote in message
news:%23KnyqG44EHA.3376@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> I'm reposting this with the script written in VB, hoping this
> may trigger a response. See script and output below.
>
> I'm able to run this script on PCs to
> get User Quota information. However, when run on
> a file server (Win2000), with 100+ user file shares,
> the process completes, but is unable to get all user information.
>
> The script only returns information on two or three users, then
> its unable to get "user" information. It returns:
> "account status: 5".
>
> The quota numbers are meaningless without knowing who's
> account they belong to.
>
> Any help or comments would be appreciated.
>
> Thanks
> kbatzer
>
>
> Script:
> ===================================
> Set colDiskQuotas = CreateObject("Microsoft.DiskQuota.1")
> colDiskQuotas.Initialize "C:\", True
> For Each objUser in colDiskQuotas
>
> Wscript.Echo "QuotaEntry ID: " & objUser.ID
> Wscript.Echo "Logon name: " & objUser.LogonName
> Wscript.Echo "Account Status: " & objUser.AccountStatus
> Wscript.Echo "Display Name: " & objUser.DisplayName
> Wscript.Echo "Quota limit: " & objUser.QuotaLimit
> Wscript.Echo "Quota threshold: " & objUser.QuotaThreshold
> Wscript.Echo "Quota used: " & objUser.QuotaUsed
>
> Next
> ===================================
>
> Script OUTPUT using cscript:
> ==================================
> QuotaEntry ID: 1
> Logon name: BUILTIN\Administrators
> Account Status: 0
> Display Name:
> Quota limit: -1
> Quota threshold: -1
> Quota used: 19408290816
>
> QuotaEntry ID: 2
> Logon name: NANTUCKET\kbatzer
> Account Status: 0
> Display Name: Kirk Batzer
> Quota limit: 838860800
> Quota threshold: 734003200
> Quota used: 0
>
> QuotaEntry ID: 3
> Logon name:
> Account Status: 5
> Display Name:
> Quota limit: 838860800
> Quota threshold: 734003200
> Quota used: 0
>
> QuotaEntry ID: 4
> Logon name:
> Account Status: 5
> Display Name:
> Quota limit: 838860800
> Quota threshold: 734003200
> Quota used: 388368384
>
>
>
- Next message: name: "Re: Reading file from Temporary Internet Files"
- Previous message: name: "Re: Add HTTP Headers"
- In reply to: Kirk Batzer: "Disk Quota User Info"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|