Jump to content

REQUEST - A Script to delete several folders in the server copies of "user profiles"


Recommended Posts

Posted

Hi all,

 

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!

  • 1 year later...
Posted

Why not look to switching to redirected app data folders through folder redirection then stuff like this is not downloaded every time?

 

Know that does not fix your actual issue though.

Posted

Thanks mate, but in the end I found out that when a folder is "excluded from roaming" it actually deletes the server copy of that folder in the roaming profile when they log off.

But... If appdata is redirected to the NAS server means it doesn't get copied to the machine on logon, that will definitely reduce logon times. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...