I would like to know if this is the best and safest way of deleting files in the temp folder using Group Policy on users computers. Please look at the screenshot below.

Will this work?

GPO_Delete.PNG

6 Spice ups

That will work.

You could use a file GPP.

This is what I use to delete the Old update Cabs.

deletegpp.png

As always make sure to test before you deploy a gpo.

2 Spice ups

Hi Justin1250,

Will this work for all users?

C:\Users*Default*\AppData\Local\Temp

Or

C:\Users__*__\AppData\Local\Temp

@jhart

For Appdata I would use a User File GPP C:\Users\Default is only used when making a new profile on the computer rather than any user that logs in.

path should be

C:\Users%username%\appdata\local\Temp*

Thank you.