…continued from page 1 ……. In the TerminalServer.kix file, I have a section that copies the shortcuts to Microsoft Office applications such as Word, Excel etc to the users Desktop and [Start] menu. This is to avoid such calls as “My Word shortcut isn’t there anymore?”.

SHELL ‘robocopy \\SERVER\NETLOGON\Files “%USERPROFILE%\Desktop” “Microsoft Excel.lnk” /XN /XO’
SHELL ‘robocopy \\SERVER\NETLOGON\Files “%USERPROFILE%\Start Menu” “Microsoft Excel.lnk” /XN /XO’

What I did was created a folder on the NETLOGON share on the Server called “Files” and dragged the shortcut to Microsoft Excel into that folder. I then used the KIX “SHELL” command to run the ROBOCOPY executable (which is also stored on the NETLOGON share) to copy the shortcuts onto the users Desktop and Start Menu. If the user deletes the shortcut by accident, next time they log back on, the shortcut gets copied back again.


I also added the follow line to delete the Internet Explorer (64 Bit) shorcut because I’ve found a lot of IE addons don’t work in IE 64-bit so why have it there to confuse users and make your life difficult right?

del “%USERPROFILE%\Start Menu\Programs\Internet Explorer (64-bit).lnk”  /F /Q


Lastly, I added another line which copies a shortcut to the CRM package (that was installed on the Terminal/RDS server) to the user’s Desktop and Start Menu and only needs to be copied to users who are in the “CRM” group. Remember, this all only happens if the user is logged into what we defined as a Terminal Server by manually adding that registry key earlier.

If InGroup(“CRM”)
 SHELL ‘robocopy \\SERVER\NETLOGON\Files “%USERPROFILE%\Desktop” “CRM.lnk” /COPY:DAT /R:0 /W:0’
 SHELL ‘robocopy \\SERVER\NETLOGON\Files “%USERPROFILE%\Start Menu” “CRM.lnk” /COPY:DAT /R:0 /W:0’

Hope this helps.

GD Star Rating
GD Star Rating

Related Posts:

Pages: 1 2