Skip to content

Instantly share code, notes, and snippets.

View vanzan01's full-sized avatar

vanzan01

  • Perth
  • 21:51 (UTC +08:00)
View GitHub Profile
@vanzan01
vanzan01 / Fix-Razer.ps1
Last active May 15, 2025 05:37
Fixing Razer Game Manager logoff crashes on Windows 11 24H2 shutdown
# 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