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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server mapping

Status
Not open for further replies.

mydogbites

IS-IT--Management
Jul 3, 2006
23
GB
Is there a way i can map server shortcuts to all users desktops automatically with out using roaming profiles? or even just in my network places?

Cheers

James
 
This portion of Markdmac's awesome FAQ (faq329-5798) should help:

Create Desktop Shortcut
I can't believe this one hasn't come up sooner but thankfully a Tek-Tips user asked for this. So here is the situation. You have a shared folder on your network and you want everyone to have a shortcut to it on their desktop. Easy as pie...<insert Homer Simpson voice> Yum pie... Sorry my brain took a vacation.

You need only edit the text in red.
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

This would be used as a login script pushed out via GPO....
 
Oops. The red didn't come through. Let me give you that portion:

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

Part and Inventory Search

Sponsor

Back
Top