Hi All,
I want to create a shortcut on my desktop of an OragnizationUnit with a
logonScript.
I try to use the follow code:
'**********
set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop &
"\SharedFolder.lnk")
oShellLink.TargetPath = "ntds://myDomain.it/myOU"
oShellLink.relativePath = "ntds://myDomain.it/myOU"
oShellLink.Description = "Shortcut to SharedoFolder"
oShellLink.WorkingDirectory = strDesktop
oShellLink.Save
'**********
But it does not create a valid shortcut.
Do u have an idea why it does not work??
The only way i find to create the shortcut to the OU is to drag and drop the
OU on my desktop, but I must to automate it!!!
Please Help me!
Sergio Marchi