November 15th, 2012, 10:38 AM
Login script help
Here is the login script applied to computers, which basically creates a shortcut on the users desktop (any who logs into the affected pc's)
strDesktop = "C:\Documents and Settings\All Users\Desktop"
set WshShell = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(strDesktop & "\oururelhere.urel") Then
Set shortcut = WshShell.createshortcut(strDesktop & "\oururelhere.urel")
Works perfect, but now i want to enforce it to use Chrome (which is already installed on the users PC's but isn't the default browser and needs to stay that way!)
please help! its blagging my head!
November 16th, 2012, 06:24 AM
November 16th, 2012, 11:13 AM
If it's not the default browser then you need to specify the application. I don't have chrome installed but this is how it would work for firefox (you can put this in the Run... prompt in windows to test how it works)
Theoretically you should be able to replace firefox.exe with chrome's executable (chrome.exe?) to achieve the same. I don't know if it will let you make the shortcut that way programatically ... if you manually do it you need to browse for the full path of the executable.
Last edited by medialint; November 16th, 2012 at 11:15 AM.
“Today you are You, that is truer than true. There is no one alive who is Youer than You.” - Dr. Seuss
November 19th, 2012, 02:08 AM
I've tried -
shortcut.targetpath =%userprofile%\Local Settings\Application
This doesnt seem to work