cragos1984 Posted November 27, 2013 Posted November 27, 2013 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
cromertech Posted November 27, 2013 Posted November 27, 2013 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.
pleach85 Posted November 28, 2013 Posted November 28, 2013 I would use a powershell script running as a scheduled task on the server hosting the users appdata. $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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now