Problem/Requirements:
I cannot use Active Directory to manage quotas and limit utilization, so I need script that would provide one feature - report disk utilization by user/group.
Details are below
Desired features/flow:
=============
1. Scan recursively desired folders (paths can be passed as parameters or as variables inside the script) and for each file, obtain ownership info (user/group) and total file sizes. The Server and users/groups are in Active Directory (I don't know if on Windows this info can be obtained without AD?)
2. Create Disk Utilization Report (tab-delimted text file) by user and by group sorted in three ways - by user name, by group, by disk utilization (MB).
Example:
User Size (MB) File Count
======================
joe 20 202
jack 532 12322
Group Size (MB) File Count
======================
users 1231232 342342343
Administrators 234342 34323
3. Users near or over X MB and groups near over Y MB of files (X, Y may be passed as parameters or hard-coded in the script, either is OK).
a. List users and groups accounts over 80% and under 90% of X and Y, respectively
Example:
Users with 80-90% quota utilization
=====================
joe 81%
andy 89%
b. Same as 3a, only for users over 100
OS: Windows 2K SP4
Other: I'd prefer Perl or some other easy to learn language (so that I can modify details without bothering others) but anything that does the job is welcome.
Start Free Trial