问题
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?
回答1:
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.
回答2:
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.
回答3:
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.
来源:https://stackoverflow.com/questions/51617117/start-microsoft-edge-in-fullscreen