Pictures and videos consume the most space in the redirected folders of my users. While I don’t have a great solution for videos yet, I cobbled together a few PowerShell scripts into a single solution. The script below will search a root folder (\\Test\FR\Staff\) and work through each user’s subfolder (\\Test\FR\Staff\jmoody\). It will find any picture greater than your specified resolution and reduce it to a more appropriate size. Even small environments could save several 100 GBs!
I wanted to see how big of a difference this re-sizing could make. I modified the script output to keep the old photo for comparison. To show you the size difference, look at the screenshot below. The new photo is almost 30x smaller than the original photo! On my 1920×1080 monitor – I can see zero difference in quality.
In the very first line of the PowerShell script, you will need to set your domain name. The next three $UserFolders lines are examples searches. The first will convert pictures only in the Jmoody subfolder. The second will convert the first 10 folders in the root folder. The final example will convert all folders. As you implement this script in your environment, I recommend a roll-out using those three examples. For safety, keep extending the select -first example until you are comfortable converting every picture that is in your folder redirection share.
Here is the script – I’ll meet you with some more information below it. If your mouse wheel breaks while scrolling down, remember that you can still use the Page Down button on your keyboard. 🙂