Scripts Thread, REQUEST - A Script to delete several folders in the server copies of "user profiles" in Coding and Web Development; Hi all,
I have recently excluded several folders from getting copied back to the server in roaming profiles. The reason ...
18th November 2011, 10:39 PM #1
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!
IDG Tech News
21st November 2012, 11:41 PM #2
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.
22nd November 2012, 08:47 PM #3
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.
22nd November 2012, 09:33 PM #4
Glad to hear it.
I switched to redirected app data the other day. Everything is redirected here now, so profiles are tiny. It halved login times to 7 seconds
By ful56_uk in forum Scripts
Last Post: 30th April 2010, 11:46 PM
By scotimus in forum Scripts
Last Post: 26th September 2008, 04:57 PM
By Baasha_Bhai in forum Scripts
Last Post: 2nd July 2008, 11:41 AM
Last Post: 4th June 2008, 01:30 PM
By Pumaedition in forum Scripts
Last Post: 22nd April 2008, 11:08 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)