In my hospital we are setting up a domain. We need to check how much the desktop and documents folders on all users’s size are. Then the result should be printed somewhere in a file to get a report of it, like in my own computer or in a network share. Is that something doable? We are using EndpointCentral to check all of the workstations remotely, we can also use it to launch a script on each target machine locally without having to specify the list of target machines in the script.

How would you do this? Tldr: need help using a script to determine desktop and document size for each local user on various pcs

3 Spice ups

Is there a reason you need the sizes of this - it may help if we know why you want it.

If you are using FR, then you can get the sizes on the share.

Since we are putting all of the machines under a domain we need that info to know how much space to allocate to each user

1 Spice up

This site offers a pretty decent tutorial on how to script it. You’d use your EC tool to run it locally on each PC and point the $outputFile to some central network share. Will still require you to do some hand-calculating, but you could probably modify the script to summarize a bit better.

Or, you could just pick a reasonable number, set disk quotas, and tell users they only have “50GB” or whatever size you decide on. Another option, if you’re using O365 (I presume the HIPAA certified offering,) you could put all user files on OneDrive and not worry about home directories on your Domain at all.

1 Spice up

Adding users to the domain doesn’t change their local documents, unless you mean you are planning on setting up folder redirection or home drives, which you’ve not mentioned.

If you have 365, the better option would be KFM - OneDrive, where the users data sits there, up to 1TB.

1 Spice up