Last active
May 15, 2025 05:37
-
-
Save vanzan01/20433479d6792e2edf5758ecbeee2065 to your computer and use it in GitHub Desktop.
Fixing Razer Game Manager logoff crashes on Windows 11 24H2 shutdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix-Razer.ps1 – grace first, force only if needed | |
$displayName = 'Razer Game Manager Service 3' | |
$exeName = 'GameManagerService3' | |
# --- 1 try a normal Stop-Service (graceful) ------------------------------- | |
try { | |
$svc = Get-Service -DisplayName $displayName -ErrorAction Stop | |
if ($svc.Status -ne 'Stopped') { | |
Write-Verbose "Sending SERVICE_CONTROL_STOP to $displayName" | |
Stop-Service -Name $svc.Name -ErrorAction Stop -WarningAction SilentlyContinue | |
$svc.WaitForStatus('Stopped','00:00:05') # wait up to 5 s | |
} | |
} catch { | |
Write-Verbose "Graceful stop failed or timed-out: $_" | |
} | |
# --- 2 ensure the exe is really gone -------------------------------------- | |
Get-Process -Name $exeName -ErrorAction SilentlyContinue | | |
Stop-Process -Force -ErrorAction SilentlyContinue |
Thanks for sharing this write-up. I took the notes in your comments and added them into a README.md that I made part of the gist. That way if someone clones or forks it, they get your notes along with the script. (Comments don't travel with gists).
thanks bro - hope your crashes are solved!
thanks, man
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
C:\Windows\System32\GroupPolicy\Machine\Scripts\Shutdown\Fix-Razer.ps1
📑 Wire it into shutdown (Local GPO)
Computer Config → Windows Settings → Scripts (Startup/Shutdown)
select Fix-Razer.ps1 (folder opens automatically).
powercfg -h off
✅ What happens on shutdown
Stop-Service
and waits 5 s.Stop-Process -Force
killsGameManagerService3.exe
.🔎 Verifying
shows Completed successfully (0x0).
📝 Notes
WaitForStatus
timeout if you want a longer or shorter grace period.Happy (clean) shutdowns! 🚀