
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.
Microsoft Edge Microsoft Edge development
