+ Post New Thread
Results 1 to 4 of 4
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 ...
  1. #1

    Join Date
    Aug 2007
    Posts
    802
    Thank Post
    95
    Thanked 60 Times in 45 Posts
    Rep Power
    25

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

    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!

  2. #2

    Join Date
    Apr 2012
    Posts
    400
    Thank Post
    37
    Thanked 31 Times in 25 Posts
    Rep Power
    10
    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.

  3. #3

    Join Date
    Aug 2007
    Posts
    802
    Thank Post
    95
    Thanked 60 Times in 45 Posts
    Rep Power
    25
    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.

  4. #4

    Join Date
    Apr 2012
    Posts
    400
    Thank Post
    37
    Thanked 31 Times in 25 Posts
    Rep Power
    10
    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

SHARE:
+ Post New Thread

Similar Threads

  1. vb script to delete sub folders
    By ful56_uk in forum Scripts
    Replies: 1
    Last Post: 30th April 2010, 10:46 PM
  2. Replies: 6
    Last Post: 26th September 2008, 03:57 PM
  3. Script to delete specific folders
    By Baasha_Bhai in forum Scripts
    Replies: 8
    Last Post: 2nd July 2008, 10:41 AM
  4. VB script to delete certain folders
    By PTD in forum Scripts
    Replies: 7
    Last Post: 4th June 2008, 12:30 PM
  5. Script to delete certain folders
    By Pumaedition in forum Scripts
    Replies: 4
    Last Post: 22nd April 2008, 10:08 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •