Hi Mike Richter,
I did some research and found the following article. Since you already have
the required policy in GP itself, no need to use scripts for that.
To delete or retain temporary folders when exiting
Using Group Policies (best practice)
Open Group Policy.
In Computer Configuration, Administrative Templates, Windows Components,
Terminal Services, Temporary folders, double-click the Do not delete temp
folder upon exit setting.
To retain users' temporary folders when a user logs off from a session,
click Enabled. To delete users' temporary folders when a user logs off,
click Disabled.
Click OK.
Important
You should thoroughly test any changes you make to Group Policy settings
before applying them to users or computers. For more information on testing
policy settings, see Resultant Set of Policy.
Note
=====
Use the above procedure to configure the local Group Policy object. To
change a policy for a domain or an organizational unit, you must log on to
the primary domain controller as an Administrator. Then, you must invoke
Group Policy through the Active Directory Users and Computers snap-in.
For more information look at
http://www.microsoft.com/resources/documentation/WindowsServ/2003/enterprise
/proddocs/en-us/Default.asp?url=/resources/documentation/WindowsServ/2003/en
terprise/proddocs/en-us/ts_con_ss_020.asp
Thanks,
(e-mail address removed)
This posting is provided "AS IS" with no warranties, and confers no rights.