Hi,

Some of our users have their appdata folder redirected to a server share. Within our kix login script we have a command that deletes all Office templates and copies updated templates from a DFS share to their local %appdata%\Microsoft\Templates folder depending on the AD group they are a member of.

I have noticed though the line that should delete the template files doesn't work for the users whose appdata folder sits on the server share. If i'm logged in as the user i can browse to their appdata folder (using %appdata%) and delete files through windows explorer so i don't believe it is a permissions issue. I'm just wondering if i have the correct syntax:

If (InGroup("MYDOMAIN\_STUDIO1"))
DEL "%USERPROFILE%\%AppData%\Microsoft\Templates\*.*" /f /c
COPY "\\mydomain.local\_asia\Graphics\Templates\Office\Word\_Studio1\*.*" "%userprofile%\%AppData%\Microsoft\Templates\*.*" /c /r

The %userprofile%\%appdata% resolves correctly to \\server\share\userfolder\Appdata\Roaming

We are using the following:

KIX version: 4.63
Windows 7 Enterprise x64

Thanks in advance for any advice.