question

ShawnM-9586 avatar image
0 Votes"
ShawnM-9586 asked Deepak-MSFT commented

Can MS-Edge be opened from a domain login script?

Can someone confirm if it is possible to invoke MS-Edge during a domain login script? I'm getting the impression that there are portions of the application that have not finished setting up by the end of the script run.

I have a VBS login script. Management wants the in-house SharePoint intranet page displayed after a user logs in. This has been working with a shell.run of iexplore.exe. I want to change to opening with Microsoft Edge instead. I have a VBS and CMD/BAT that all work from the desktop, but when I set them as the login script in AD, I get errors as noted below.

I don't want to add a GPO or Startup command if possible because if the device is off premise, it won't be able to find the internal site.

edge.cmd:
@echo off
start microsoft-edge:https://google.com/

After about 60 seconds, this gives an error popup of "File System error (-2147219200)." Logon pauses until the window is closed.

edgelogon.vbs
dim shell
set shell=createobject("wscript.shell")
shell.run "\\DC\SYSVOL\domain\scripts\edge.cmd"
set shell=nothing

Immediate response with a popup error of "File System error (-2018374635)."

edge.vbs
Dim URL
URL = "https://google.com"
Dim shell
Set Shell = CreateObject("WScript.Shell")
Shell.Run """" & "microsoft-edge:" & URL & """"

Another 60 second delay with the error "Line 5, Char 1, Error "No application is associated with the specified file for this application.", Code 80070483, Source: (null)

I've tested on computers running Windows 10 1709, 1809, and 1909.

ms-edge
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@ShawnM-9586,

I want to confirm with you, whether you are trying to launch the Edge legacy browser or an Edge Chromium browser?

Which exact version of the Edge browser you are using for making this test?

If you want to launch the Edge Chromium browser then you need to use the code below.


 Dim iURL 
 Dim objShell
 iURL = "www.Your_website_here.com"
 set objShell = CreateObject("Shell.Application")
 objShell.ShellExecute "msedge.exe", iURL, "", "", 1


If you are trying to launch the Edge legacy browser then I suggest you try to run the script after 1 or 2 minutes from logon. See whether it helps to launch the Edge browser or not.

0 Votes 0 ·

0 Answers