batesstaff
asked on
create shortcut with icon
I am trying to roll out an internet shortcut with its own icon via sccm I am having trouble linking the icon to the shortcut. I have the below .vbs but it doesnt work can any one assist (I am not good with .vbs)
set WshShell = WScript.CreateObject("WScr ipt.Shell" )
strDesktop = WshShell.SpecialFolders("A llUsersDes ktop" )
set oShellLink = WshShell.CreateShortcut(st rDesktop & "Your_Shortcut.lnk" )
oShellLink.TargetPath = " http://Server/website"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:WINDOWSsystem32shdoclc. dll"
oShellLink.Save
set WshShell = WScript.CreateObject("WScr
strDesktop = WshShell.SpecialFolders("A
set oShellLink = WshShell.CreateShortcut(st
oShellLink.TargetPath = " http://Server/website"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:WINDOWSsystem32shdoclc.
oShellLink.Save
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.