Hal Berenson
Guest
|
Posted:
Wed Nov 09, 2005 1:16 am Post subject:
Finding disk quotas for users based on group membership |
|
|
We're trying to display disk space used for users who are members of a
(domain) group. Right now we query (Win32_DiskQuota) for each user.
However since this takes 15-20 seconds per query it can get quite ugly for
even a modest size group. One option would be to query for all users and
then filter in the application. This would take only 15-20 seconds in
total, but the application then has to deal with 100s or even 1000s of users
at once. What we'd really like to do is have one query that returns the
Win32_DiskQuota objects for all users who are the member of a domain group.
It looks to me like this should be doable, but all my attempts have ended in
failure. Anyone have a script fragment that does this? Or even know if it
is possible...
Thanks!
--
Hal Berenson, President
PredictableIT, LLC
www.predictableit.com |
|