Solved

Server 2008 Remote desktop Services (TS)

Posted on 2012-04-10
3
406 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
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 walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

739 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