Hello, I realize this thread is somewhat old, but I'm trying to use this script on my workstations connected to a domain (we have quite a few machines with the "temporary profile" error). However, I get an error at the line "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ & objSubkey". I'm assuming there has to be some sort of delete command in front of that path but I'm not sure of the exact syntax. I've been searching a while on my own and tried a number of different ways to no avail. Any help you can provide would be greatly appreciated.
Thanks,
JB