VBS open IE script?

Home Forums Scripting General Scripting VBS open IE script?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    jason0923
    Member
    #164799

    I have a script to open a website that only works in IE originally I had the script set to just go to a URL but some people have Chrome set as the default browser so I changed it to specify IE and that works and it opens IE and another tab asking if the user wants to make IE the default browser. Is there any way of getting it to open IE just to the site and not the extra tab asking to set it as default browser?

    Part of my script

    Set WshShell = WScript.CreateObject(“WScript.Shell”)
    Set oShell = CreateObject(“Wscript.Shell”)
    Set oFSO = CreateObject(“Scripting.FileSystemObject”)
    Return = WshShell.Run(“iexplore.exe [url]https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=adfs.mydomain&wreply=https://mydomain-[/url]
    my.sharepoint.com&LoginOptions=1”, 1)[/CODE][CODE]Set WshShell = WScript.CreateObject(“WScript.Shell”)
    Set oShell = CreateObject(“Wscript.Shell”)
    Set oFSO = CreateObject(“Scripting.FileSystemObject”)
    Return = WshShell.Run(“iexplore.exe https://login.microsoftonline.com/login.srf?wa=wsignin1.0&whr=adfs.mydomain&wreply=https://mydomain-
    my.sharepoint.com&LoginOptions=1″, 1)[/CODE]

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.