Windows Profiles – Saving a copy and deleting
Another script request out of Spiceworks the other day. This turned out to be a long discussion as the OP wasn’t too familiar with scripting and Powershell scripting in particular. This can be a bit of a problem sometimes as I speak in using Powershellese that can be a bit difficult for some. The OP wanted a script that would hit a computer, copy all profiles older then 60 days to a central server then delete the profiles. This was another interesting use of WMI and taking advantage of Powershell looping and PSObjects. Let’s see how we solve this problem.