Solved

Server 2008 Remote desktop Services (TS)

Posted on 2012-04-10
3
402 Views
Last Modified: 2012-05-08
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
Comment
Question by:techlinden
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
SuperTaco earned 500 total points
ID: 37829939
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
 

Author Comment

by:techlinden
ID: 37829955
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
 
LVL 10

Expert Comment

by:SuperTaco
ID: 37835551
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Local Printing Using Remote Desktop Windows 7 sometimes has issues with printing to a local printer using a Remote Desktop Connection (RDC). The 1st step is to verify that printers are checked on the Local Resources tab of the Remote Desktop C…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will show how to push an installation of Backup Exec to an additional server in both 2012 and 2014 versions of the software. Click on the Backup Exec button in the upper left corner. From here, select Installation and Licensing, then I…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now