Skip to content

Instantly share code, notes, and snippets.

@ahmedsadman
Created August 2, 2022 16:52
Show Gist options
  • Save ahmedsadman/e9911aad51108aac329e9851ab71a0b0 to your computer and use it in GitHub Desktop.
Save ahmedsadman/e9911aad51108aac329e9851ab71a0b0 to your computer and use it in GitHub Desktop.
Disable Turbo power mode with batch file while running a certain application
@echo off
echo Switching power modes (Turboless)
powercfg /s 9d9d13cf-c730-4421-8f6f-4d8d6f8bd265
echo Starting game
start /w "" "Stray.exe"
echo Restoring power mode (Performance)
powercfg /s 27fa6203-3987-4dcc-918d-748559d549ec
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment