Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

PowerShell Script to Clean User Profiles File Location

$
0
0

Hello,

I have been searching around to accomplish what I am trying to do. It is pretty basic so I am hoping someone can point me in the right direction. I want to write a powershell script to clean out two locations in all the user profiles on a Citrix server. Here are the steps I'd like to accomplish.

1. Find all user profiles on the Citrix server

2. Delete all the files from these two locations; "\Local Settings\Application Data\Mozilla\*.*" and "\Local Settings\Application Data\Microsoft\OneNote\*.*"

This will run on a weekly basis via a scheduled task. A nice to have would be to add any profile over 60 days old.

I have a pretty good start, but I am still learning PowerShell, so any help would be appreciated.

Thanks in advance!


Thanks, Jeremy


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>