FW: need help finding Microsoft User Data folder size for all Mac Users as a report.

Not applicable

Hi,

I have created the script for finding Microsoft Users data folder size from the Users Documents folder
Here is the script I am able to execute it using command line its working fine and giving results.

But when I am coping same script in the Extension attributes as per the instruction given in the KB article http://www.jamfsoftware.com/kb/article.php?id=278.
And running inventory search, I am not able see any results.

#!/bin/bash

UserList=dscl . list /Users UniqueID | awk '$2 > 500 { print $1 }'

for u in $UserList ; do

results=du -sh /Users/$u/Documents/Microsoft User Data
echo "<result> $u $results </result>"

done exit 0

Please help if anyone has gone through the same problem.

Regards,
Vinay Washimkar

Date: Wed, 9 Mar 2011 21:24:01 +0530

![external image link](attachments/e06ebcca96104135af0a90a41a145e09)

0 REPLIES 0