fix(scripts): bypass PowerShell execution policy in PLAY_FRAMEGEN.cmd and fix Windows 11 HAGS check #31

Merged
wike1701 merged 1 commit from upstream-pr/31 into main 2026-11-27 11:00:47 +00:00
wike1701 commented 2026-11-27 10:47:22 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wike1701 on 2026-11-27T10:47:22Z.


Fixes two issues hit when running \PLAY_FRAMEGEN.cmd\ on a standard Windows 11 setup:

  1. PowerShell execution policy block: \PLAY_FRAMEGEN.cmd\ invoked \powershell -NoProfile -File\ without -ExecutionPolicy Bypass, which fails with \SecurityError / UnauthorizedAccess\ on Windows systems with the default \Restricted\ policy. Added -ExecutionPolicy Bypass\ to both the \check\ and run invocations.
  2. False \HAGS: off\ warning on Windows 11: On Windows 11 (build >= 22000), Hardware-Accelerated GPU Scheduling is enabled by default on supported GPUs without always creating the legacy \HwSchMode\ registry value until toggled. Checking only \ -eq 2\ reported \HAGS: off\ even when HAGS was enabled in Windows Settings. Now \HwSchMode = 1\ is reported as off, \2\ as on, and absent on Windows 11 as \default (on in Windows 11).

Verification

Tested \PLAY_FRAMEGEN.cmd check\ on Windows 11 (RTX 5060 Ti 16 GB, default PowerShell policy):

  • Runs cleanly with no execution-policy error.
  • Reports \HAGS: default (on in Windows 11).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5525322496 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/31). Originally posted by [wike1701](https://github.com/wike1701) on 2026-11-27T10:47:22Z. --- Fixes two issues hit when running \PLAY_FRAMEGEN.cmd\ on a standard Windows 11 setup: 1. **PowerShell execution policy block:** \PLAY_FRAMEGEN.cmd\ invoked \powershell -NoProfile -File\ without \-ExecutionPolicy Bypass\, which fails with \SecurityError / UnauthorizedAccess\ on Windows systems with the default \Restricted\ policy. Added \-ExecutionPolicy Bypass\ to both the \check\ and run invocations. 2. **False \HAGS: off\ warning on Windows 11:** On Windows 11 (build >= 22000), Hardware-Accelerated GPU Scheduling is enabled by default on supported GPUs without always creating the legacy \HwSchMode\ registry value until toggled. Checking only \\ -eq 2\ reported \HAGS: off\ even when HAGS was enabled in Windows Settings. Now \HwSchMode = 1\ is reported as off, \2\ as on, and absent on Windows 11 as \default (on in Windows 11)\. ### Verification Tested \PLAY_FRAMEGEN.cmd check\ on Windows 11 (RTX 5060 Ti 16 GB, default PowerShell policy): - Runs cleanly with no execution-policy error. - Reports \HAGS: default (on in Windows 11)\.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!31
No description provided.