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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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
Answered 01/02/2012 by: GillySpy
Seventh Degree Black Belt

Please log in to comment
0
When I do add this custom inventory field how will I pull monthly report on these?
Answered 01/24/2012 by: Mariusja
Second Degree Green Belt

Please log in to comment
0
which inventory rule do I need to use?
Answered 01/24/2012 by: Mariusja
Second Degree Green Belt

Please log in to comment
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)
Answered 01/24/2012 by: scottlutz
Orange Senior Belt

Please log in to comment
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?
Answered 01/24/2012 by: Mariusja
Second Degree Green Belt

Please log in to comment
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 :(
Answered 01/25/2012 by: rmeyer
Second Degree Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity