I found a fix and itn works
A legacy logon script was setting:
HKEY_CURRENT_USER\Environment\TMP
HKEY_CURRENT_USER\Environment\TEMP
To be the string %UserProfile%\Local Settings\Temp. Removing this and
changing it to:
> SETX TEMP "%userprofile$\Local Settings\Temp"
> SETX TMP "%userprofile$\Local Settings\Temp"