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!

Group Policy question...

Status
Not open for further replies.

uplinx

IS-IT--Management
Oct 20, 2005
7
GB
Hi there,

Not having used GP's for a little while now, i was just wondering if anyone could tell me how to create a GP for a GPO that would put a shortcut onto the desktop of all users in the group. The shortcut is to a file in a networked location \\server\folder\filename.ext

Any advice would be great, or any alternative methods that would work just as well?!
 
Create a logon script to do this in the Group Policy applied to the users.

The logon script (VBScript) would like something like this:

set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop")
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Network Share.lnk")
oShellLink.TargetPath = "\\server\share"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "SHELL32.dll, 18"
oShellLink.Description = "Network Share"
oShellLink.WorkingDirectory = "\\share\server"
oShellLink.Save



Hope this helps.

-Keshav
 
Refer to my FAQ on login scritps for some advice on implementing scripts via GPO. faq329-5798

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top