Re: Disk Quota User Info

From: name (nospam_at_user.com)
Date: 12/19/04


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
>
>
>



Relevant Pages

  • AD scripting question
    ... I am working on a VB script that creates users. ... When I open AD Users and Computers (ADUC), call up a user account, ... as listed in "Display name"; rather, it is listed as "User logon ...
    (microsoft.public.win2000.active_directory)
  • Disk Quota User Info
    ... See script and output below. ... The quota numbers are meaningless without knowing who's ... account they belong to. ... Quota threshold: -1 ...
    (microsoft.public.scripting.wsh)
  • Re: NT to 2003 Migration Help
    ... script it or migrate exchange which populates the fields. ... If you're company is populating the display name, ... When the account is disabled it shows an red circle. ...
    (microsoft.public.windows.server.active_directory)
  • Re: TextBox Control
    ... What I can do is not display ... asp.net/vb.net purely as a learning tool. ... To find out if script is enabled: ... Page A. Prompt for the account number, and if it's valid go to page B. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Disk Quota fails to get all information
    ... Post your "vb" script and there may be some response. ... > I've been able to run this perl Disk Quota script on PCs to get disk quota ... > Account Status: 0 ... > Display Name: Kirk Batzer ...
    (microsoft.public.scripting.wsh)

Quantcast