• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

Server 2008 Remote desktop Services (TS)

Hi all and thanks for your assistance.

Server 2008 R2 running remote desktop services - all I want is the my documents icon on ALL users desktops.  Plenty of info out there on removing it, but nada on making it appear.

Thanks again
0
techlinden
Asked:
techlinden
  • 2
1 Solution
 
SuperTacoCommented:
I've usuallly used a script for this

Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_USERS = &H80000003

strComputer = "."

Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

' Set link to home users folder

Set objNetwork = CreateObject("Wscript.Network")
strUser = objNetwork.UserName
strPath = "\\Srvfile01\FolderRedirection\" & strUser & "\My Documents"

Set objShell = CreateObject("Wscript.Shell")
strPrograms = objShell.SpecialFolders("Desktop")

Set objShellLink = objShell.CreateShortcut(strPrograms & "\" & "Mijn
Documenten" & ".lnk")
objShellLink.TargetPath = strPath

objShellLink.Description = "Home folder for " & strUser
objShellLink.WorkingDirectory = strPath
objShellLink.Save

All you're doing is creating a link to %SystemRoot%\system32\mydocs.dll
0
 
techlindenAuthor Commented:
Thanks!  such a hassle for such a simple task.

I do have their mydocuments redirected to a nas device - should this line

strPath = "\\Srvfile01\FolderRedirection\" & strUser & "\My Documents"

be adjusted to reflect the redirection?
0
 
SuperTacoCommented:
It shouldn't have to be, you're just creating a shortcut on the desktop.  the .lnk should take care of that
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now