+ Post New Thread
Results 1 to 3 of 3
Windows Thread, Script to delete appdata sub folder content for multiple users in Technical; Hi we are having major issues with adobe CS6 producing a serious amount of appdata for each student on the ...
  1. #1

    Join Date
    Jan 2013
    Posts
    14
    Thank Post
    1
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Script to delete appdata sub folder content for multiple users

    Hi

    we are having major issues with adobe CS6 producing a serious amount of appdata for each student on the system. I am looking to delete the adobe appdata folder on a weekly basis to avoid serious buildup with the use of a script and scheduled task but am not sure which way to go about this or if this is the correct approach.The appdata folder is currently redirected to a hidden share on the network. Any help with this at all would be greatly recieved.

    Thanks

    Craig

  2. #2
    cromertech's Avatar
    Join Date
    Dec 2007
    Location
    Cromer by the coast
    Posts
    731
    Thank Post
    177
    Thanked 109 Times in 97 Posts
    Rep Power
    54
    You can try this Delete files older than x-days - Cleanup Script
    But take a look at this as well Powershell script wont execute as Windows Scheduled Task - Stack Overflow

    I've had this running successfully in the past but don't try it with a UNC path in the location as it slows to a crawl.

  3. #3
    pleach85's Avatar
    Join Date
    Jan 2011
    Posts
    24
    Thank Post
    3
    Thanked 6 Times in 6 Posts
    Rep Power
    9
    I would use a powershell script running as a scheduled task on the server hosting the users appdata.

    Code:
    $rootFolder = "E:\users"
    $adobeLocation = "\AppData\Roaming\Adobe"
    
    Get-childitem $rootfolder | where {Test-Path ($_.fullname + $adobeLocation) -pathType container} | % {
        Remove-Item -Recurse -Force ($_.fullname + $adobeLocation)
    }
    Obviously will need testing in your environment but should do the job.

SHARE:
+ Post New Thread

Similar Threads

  1. Script to Delete Files and folders within a folder
    By doddsworthy in forum Scripts
    Replies: 17
    Last Post: 17th June 2011, 09:44 AM
  2. vb script to delete sub folders
    By ful56_uk in forum Scripts
    Replies: 1
    Last Post: 30th April 2010, 10:46 PM
  3. Replies: 1
    Last Post: 2nd July 2008, 04:20 PM
  4. Replies: 2
    Last Post: 17th April 2008, 11:25 AM
  5. Replies: 8
    Last Post: 17th November 2007, 09:04 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
  •