Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I add a shortcut to the desktop, using netlogon 1

Status
Not open for further replies.

cbflip2003

IS-IT--Management
May 8, 2005
20
GB
Please can someone help I maybe simple but I cant work it out!

\\server\NETLOGON

net use L:\\server\lessons

What I want to do is add a shortcut to the desktop on each workstation.
Different users have different netlogon!
I have tried (''net use L:\\server\lessons copy L:\\server\lessons\shortcut to lessons.lnk'')
Am I close?

Thanks in advance,

Chris

 
Code:
SET oFSO = Wscript.CreateObject("Scripting.FileSystemObject")
    strDsk = WshShell.SpecialFolders("Desktop")
     ' What is the label for the shortcut?
    strshortcut = strDsk & "\CompanyShared.lnk"
If Not oFSO.FileExists(strshortcut) Then
    SET oUrlLink = WshShell.CreateShortcut(strshortcut)
     ' What is the path to the shared folder?
    oUrlLink.TargetPath = "\\server\CompanyShared\"
    oUrlLink.Save
End If

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top