Deploying Browser Specific Shortcuts to Window 7 PCs
Your target path needs to be prefixed with the path to and name of the browser executable.
If you know your environment - and thus what those things are - you can simply add them in. If not, you're going to have to get into some major scripting to divine the paths and executable names.
oShellLink.TargetPath = "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "https:\\websitestringhere.com".
BTW, embrace coding efficiency. Specifically here, have the (let's call it) interpreter make a single call, rather than 5, to the 'oShellLink' object like this:
With oShellLink.TargetPath = "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "https:\\websitestringhere.com".
.WindowStyle = 1.IconLocation = "J:\location\of\icon\on\networkdrive\ico\shortcutIcon.ico".Description = "Icon must be browser specific".Save
set wshShell = WScript.CreateObject("WScript.Shell" )
If Not IsObject("wshShell") Then
'// Branch to your error-handler code here
strDesktop = wshShell....[etc., etc.]