> I have one particular terminal server that I wish for each user
> logging in to have a mandatory My Documents icon to show on thier
[quoted text clipped - 21 lines]
> that if registry entries need to be defined and we add a new terminal
> server, this doesn't have to be manually done all over again.
One of my tricks I use for this. Add this to the vb loginscript. If you
don't have a loginscript you should make one:
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
When the user logs off and on again the User icon is back on the desktop.

Signature
Mariëtte Knap
Microsoft SBS-MVP
One of the Magical M&M's
www.smallbizserver.net
Take part in SBS forum:
http://www.smallbizserver.net/Default.aspx?tabid=53
amberry@gmail.com - 07 Mar 2006 14:23 GMT
Thanks for the suggestion! From what I can see, this still creates a
standard shortcut (.lnk) instead of forcing the "real" My Documents
icon for the users--which is really my goal. Also, yes I do have login
scripts in use throughout my domain based on GP, however they are not
VB script (they are .bat or .cmd). I'm also not very good at working
with VB yet, my apologies. If registry work needs done, I'll need a few
extra pointers, expecially if I can't make one manual change to the
registry and must use scripting for either the user or computer. Any
other suggestions...?
TP - 07 Mar 2006 22:44 GMT
Hi Mariette,
Another trick for your bag:
If you need a .lnk shortcut to My Documents, you can
create it using the standard right-click method. The
command line is:
explorer.exe ::{450D8FBA-AD25-11D0-98A8-0800361B1103}
The icon for My Documents is located in %SystemRoot%\system32\mydocs.dll
After you have created this .lnk file, it can be copied for
use with any user. No need to customize to make it work.
For the OP's scenario of wanting it on the desktop, I think the
ADM template I provided is the best way.
-TP
>One of my tricks I use for this. Add this to the vb loginscript. If
> you don't have a loginscript you should make one:
[quoted text clipped - 27 lines]
> When the user logs off and on again the User icon is back on the
> desktop.