REQUEST - A Script to delete several folders in the server copies of "user profiles"
I have recently excluded several folders from getting copied back to the server in roaming profiles. The reason being that some software was bloating the roaming profile and was rarely needed to roam with the user... these folders were all in the "application data" folder... I now need to make sure that the server copies of their roaming profiles do not already have these folders in there or they will simply get copied back each time...
Does anyone know of a script that will run and delete selected folders from all of the user profiles without me making a huge bat script please? e.g. need folder "Dreamweaver" deleted from 300 roaming profiles from the Application data folder.
delete \\server\staff_profiles$\user1\application data\Dreamweaver
delete \\server\staff_profiles$\user2\application data\Dreamweaver
delete \\server\staff_profiles$\user3\application data\Dreamweaver
so that I wouldn't have to copy 300 staff names down into a BAT script to delete them from all the profiles.
Thanks in advance!