I am trying to launch a Powerapp using MS Edge to display on a screen. I have a batch file that needs to run every 6 hours. I need to close Edge and then relaunch the powerapp link, but the problem I am having is that when the app is relaunched it is opened on a minimised window. I need to have the powerapp displaying full screen without any Edge menus or anything. This is my code at the moment. Any suggestions would be greatly appreciated. Thanks in advance.
start msedge
taskkill /F /IM msedge.exe
%windir%\system32\cmd.exe /c "start microsoft-edge:https://apps.powerapps.com/play/{app_link}&hidenavbar=true" --disable-extensions --new-window --start-fullscreen --disable-popup-blocking
I test your code, Edge is open in maximin size but Edge menus still exist. If you want to open Edge in full screen without any menus, you can use Kiosk Mode.
You can add --kiosk
flag to enable kiosk mode in Edge, the sample code is like below. It can achieve what you want:
start msedge
taskkill /F /IM msedge.exe
%windir%\system32\cmd.exe /c "start msedge.exe --kiosk --disable-extensions --new-window --start-fullscreen --disable-popup-blocking https://apps.powerapps.com/play/{app_link}"