start microsoft edge in fullscreen

2019-09-02 06:52发布

问题:

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.