/build/static/layout/Breadcrumb_cap_w.png

Report on "My Documents" size and breakdown

Is there a report out there that can scan the computer and give me the size of My Documents with a breakdown of Sub folders. We are going with Folder Redirection on the WIN7 rollout and want to see what the storage impact will be and if we exclude music, video, and pictures. If it is not been created, what is the syntax to create as this can't be created from the wizard.

0 Comments   [ + ] Show comments

Answers (6)

Posted by: GillySpy 12 years ago
7th Degree Black Belt
0
If it's in the kbox you can report on it. This data is not in the appliance by default so you would have to do some work to get it into the kbox. Do you have any ideas of how you would gather this data on the client side?

I found this which seems like a good start. If you put this in a script combined with a custom inventory rule you could get this into the custom inventory data:

@cd /d "%userprofile%/documents"
@For /F "tokens=*" %%a IN ('"dir /s /-c | find "bytes" | find /v "free""') do @Set summaryout=%%a
@Echo %summaryout%
@For /f "tokens=1,2 delims=)" %%a in ("%summaryout%") do @set filesout=%%a&set sizeout=%%b
@Echo %filesout%
@Echo %sizeout%
@Set sizeout=%sizeout:bytes=%
@Echo %sizeout%
@Set sizeout=%sizeout: =%
@Echo Size is :%sizeout%


see this as a reference:
http://www.kace.com/support/kb/index.php?action=artikel&cat=5&id=968&artlang=en
Posted by: Mariusja 12 years ago
Second Degree Green Belt
0
When I do add this custom inventory field how will I pull monthly report on these?
Posted by: Mariusja 12 years ago
Second Degree Green Belt
0
which inventory rule do I need to use?
Posted by: scottlutz 12 years ago
Orange Senior Belt
0
You will use the inventory rule you create to contain the script output data.

Once you have done that, you can create a report based on that field if you want to schedule it to be distributed, ie via email.

You can also use a Smart Label, as Custom Fields are one of the default criteria (down at the bottom of the list)
Posted by: Mariusja 12 years ago
Second Degree Green Belt
0
I m not sure how the inventory rule will look like. Can you please give the inventory rule that I need to use and also the SQL query that I will use to run the report?
Posted by: rmeyer 12 years ago
Second Degree Blue Belt
0
I haven't tested it when run from KACE via an inventory rule but try something like this:

diruse "C:\documents and settings\administrator\My Documents" /m

And run it with a "ShellCommandTextReturn(command)"

You can then do a script to say for each folder in C:\documents and settings, go into that folder and do it for every My Documents to list for all users on the PC's and pipe it into a txt file that it can return, if you have workstations that have several users

*edit* note this command is a XP command only :(
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ