Hello,
I have a PS script that runs at 12am to clear down user profiles for our Citrix XenApp environment and looks like this:
Set-ExecutionPolicy Unrestricted -Force
remove-item "c:\UPM\andyw\UPM_Profile\AppData\Local\Microsoft\Windows\WER\ReportQueue\*" -recurse
remove-item "c:\UPM\andyw\UPM_Profile\AppData\Roaming\google\cache\Default\Application Cache\Cache\*" -recurse
remove-item "c:\UPM\andyw\UPM_Profile\AppData\Roaming\google\cache\Default\Pepper Data\*" -recurse
remove-item "c:\UPM\andyw\UPM_Profile\AppData\Roaming\google\cache\PepperFlash\*" -recurse
However there is another folder where I would like to keep the last 2 months of files and get rid of the rest how can I do this:
This is the folder:
C:\UPM\michaelc\UPM_Profile\AppData\Roaming\google\cache\Default\Local Storage