'start microsoft edge in fullscreen

I am repairing a few computers for use as digital signs. I therefore want a script to start Microsoft Edge in fullscreen on boot. The website I set as default in the settings but I have no clue on how to start the app in fullscreen, any ideas?



Solution 1:[1]

This is a pretty popular post for Google Searches, so I figured I would add my solution to this question. Windows 10 1809+ includes a new Kiosk mode, where an administrator can specify a user account to run, an application to run, and a website to run. This is great for digital displays that turn off and on at specified times.

The full instructions are here:

https://docs.microsoft.com/en-us/windows/configuration/kiosk-single-app

The current instructions are as follows. Note there are PowerShell scripts at the link above that can do this as well.


To set up assigned access in PC settings

  • Go to Start > Settings > Accounts > Other users.
  • Select Set up a kiosk > Assigned access, and then select Get started.
  • Enter a name for the new account.
    • Note: If there are any local standard user accounts on the device already, the Create an account page will offer the option to Choose an existing account.
  • Choose the app that will run when the kiosk account signs in. Only apps that can run above the lock screen will be available in the list of apps to choose from. For more information, see Guidelines for choosing an app for assigned access. If you select Microsoft Edge as the kiosk app, you configure the following options:
    • Whether Microsoft Edge should display your website full-screen (digital sign) or with some browser controls available (public browser)
    • Which URL should be displayed when the kiosk accounts signs in
    • When Microsoft Edge should restart after a period of inactivity (if you select to run as a public browser)
  • Select Close.

To remove assigned access, select the account tile on the Set up a kiosk page, and then select Remove kiosk.

Solution 2:[2]

By changing the script posted on https://superuser.com/questions/1090711/start-microsoft-edge-maximized-on-first-run a little I was able to fullscreen the microsoft edge app on launch.

start microsoft-edge:http://google.com
>> $wshell = New-Object -ComObject wscript.shell;
>> $wshell.AppActivate('Google - Microsoft Edge')
>> Sleep 2
>> $wshell.SendKeys('{F11}')

Thanks to How to send CTRL or ALT + any other key? I found the proper key for F11 and got the script working.

Solution 3:[3]

Powershell script sample:

start microsoft-edge:https://netflix.com/browse

$wshell = New-Object -ComObject wscript.shell;

$wshell.AppActivate('edge') 

while ($true)
{
    Sleep 2
    $wshell.SendKeys('{f11}')
    exit 
}

exit

Solution 4:[4]

This solution does not work anymore. The issue is the Sendkeys command. It is not supported in universal apps on windows 10. According to this link: https://answers.microsoft.com/en-us/edge/forum/all/always-on-full-screen-mode-in-ms-edge/0650c85e-fe80-451d-a65a-ea2687dd02e1 it is not possible to start edge in full screen mode unless via a GPO.

Solution 5:[5]

The script above does work, but you have to follow a short process first,

Place the script in the startup folder, (use file explorere and type shell:startup in the address bar).

Manually Run the script, when edge opens in minimised mode, maximise it.

then close edge and run the script again, this time it will open in maximised mode.

Reboot and watch the magic work.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mr. C
Solution 2 AleksanderVH
Solution 3 Adrian Mole
Solution 4 Tariiq Dusmohamud
Solution 5 Steve