Link to home
Start Free TrialLog in
Avatar of batesstaff
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("WScript.Shell" )
strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )
set oShellLink = WshShell.CreateShortcut(strDesktop & "Your_Shortcut.lnk" )
oShellLink.TargetPath = " http://Server/website"
oShellLink.WindowStyle = 1
oShellLink.IconLocation = "C:WINDOWSsystem32shdoclc.dll"
oShellLink.Save
ASKER CERTIFIED SOLUTION
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial