
My very rough attempt to automatically launch xbox mode from Vibepollo/Sunshine client.
save script to file
add script file to ms scheduler
add powershell command to vibepollo as an application.
launch from moonlight app
Otherwise just add xbox app and tap the top right corner to launch xbox mode
detailed instructions made by Claude:
Prerequisites
- Vibepollo installed and working
- Xbox Mode available on your system (Settings → Gaming → Xbox Mode)
- Xbox app fully updated via Microsoft Store
Step 1 — Create the launch script
Create folder C:\Vibepollo\ and save this as C:\Vibepollo\launch-xbox-mode.ps1:
powershell
# Kill any existing instance first
Stop-Process -Name "XboxPcApp" -Force -ErrorAction SilentlyContinue
Start-Sleep -Milliseconds 500
# Launch Xbox app
Start-Process "explorer.exe" "shell:AppsFolder\Microsoft.GamingApp_8wekyb3d8bbwe!Microsoft.Xbox.App"
# Wait for it to load
Start-Sleep -Seconds 4
# Send Win+F11 to trigger Xbox Mode shell
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class Keyboard {
[DllImport("user32.dll")]
public static extern void keybd_event(byte bVk, byte bScan, uint dwFlags, int dwExtraInfo);
public const byte VK_LWIN = 0x5B;
public const byte VK_F11 = 0x7A;
public const uint KEYDOWN = 0x0000;
public const uint KEYUP = 0x0002;
public static void WinF11() {
keybd_event(VK_LWIN, 0, KEYDOWN, 0);
keybd_event(VK_F11, 0, KEYDOWN, 0);
keybd_event(VK_F11, 0, KEYUP, 0);
keybd_event(VK_LWIN, 0, KEYUP, 0);
}
}
"@
[Keyboard]::WinF11()
Step 2 — Create a scheduled task
Vibepollo runs as SYSTEM so it can't launch UWP apps directly. The scheduled task runs it as your user instead.
- Open Task Scheduler (
Win+R→taskschd.msc) - Right-click Task Scheduler Library → New Folder → name it
Vibepollo - Right-click the folder → Create Task
- General tab: name it
Launch Xbox Mode, select Run only when user is logged on, check Run with highest privileges - Triggers: leave empty
- Actions → New:
- Program:
powershell.exe - Arguments:
-ExecutionPolicy Bypass -WindowStyle Hidden -File "C:\Vibepollo\launch-xbox-mode.ps1"
- Program:
- Conditions: uncheck Start only if on AC power
- Save
Test it works: open a command prompt and run schtasks /run /tn "\Vibepollo\Launch Xbox Mode" — Xbox Mode should open after ~4 seconds.
Step 3 — Add the app in Vibepollo
- Open Vibepollo web UI at
https://localhost:47990 - Go to Configuration → Applications → Add New
- Set:
- Name:
Xbox Mode - Command: leave blank
- Detached Commands:
schtasks.exe /run /tn "\Vibepollo\Launch Xbox Mode"
- Name:
- Save
Step 4 — Add disconnect cleanup
- Go to Configuration → General
- Find Undo Commands (On Disconnect)
- Add:
taskkill /im XboxPcApp.exe /f - Save and restart the Sunshine service
That's it. Xbox Mode will now appear in your Moonlight app list. Select it and it'll launch the Xbox app then automatically switch to full Xbox Mode shell via Win+F11. Disconnecting kills the process cleanly.