Solved

Server 2008 Remote desktop Services (TS)

Posted on 2012-04-10
3
401 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Like many organizations, your foray into cloud computing may have started with an ancillary or security service, like email spam and virus protection. For some, the first or second step into the cloud was moving email off-premise. For others, a clou…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
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…
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…

708 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

15 Experts available now in Live!

Get 1:1 Help Now