From 37f4908f22f15696c7974e7b987d824acac2a36d Mon Sep 17 00:00:00 2001 From: Kroese Date: Fri, 21 Aug 2026 15:38:29 +0200 Subject: [PATCH] feat: Disable Shutdown Tracker on Windows Server (#2170) --- assets/win2008r2.cmd | 3 +++ assets/win2012r2.cmd | 3 +++ assets/win2016.cmd | 3 +++ assets/win2019-hv.cmd | 3 +++ assets/win2019.cmd | 3 +++ assets/win2022.cmd | 3 +++ assets/win2025.cmd | 3 +++ 7 files changed, 21 insertions(+) diff --git a/assets/win2008r2.cmd b/assets/win2008r2.cmd index 1b050454..59cca277 100644 --- a/assets/win2008r2.cmd +++ b/assets/win2008r2.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2012r2.cmd b/assets/win2012r2.cmd index de3c6b32..37ed15ce 100644 --- a/assets/win2012r2.cmd +++ b/assets/win2012r2.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2016.cmd b/assets/win2016.cmd index 7cf9f067..ba1b5723 100644 --- a/assets/win2016.cmd +++ b/assets/win2016.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2019-hv.cmd b/assets/win2019-hv.cmd index 7cf9f067..ba1b5723 100644 --- a/assets/win2019-hv.cmd +++ b/assets/win2019-hv.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2019.cmd b/assets/win2019.cmd index 7cf9f067..ba1b5723 100644 --- a/assets/win2019.cmd +++ b/assets/win2019.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2022.cmd b/assets/win2022.cmd index 7cf9f067..ba1b5723 100644 --- a/assets/win2022.cmd +++ b/assets/win2022.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f diff --git a/assets/win2025.cmd b/assets/win2025.cmd index c7061708..083d43f2 100644 --- a/assets/win2025.cmd +++ b/assets/win2025.cmd @@ -15,6 +15,9 @@ if exist "%SETUP_COMPLETE%" exit /b 0 type nul > "%SETUP_STARTED%" +rem Disable Shutdown Event Tracker. +reg.exe add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Reliability" /v "ShutdownReasonOn" /t REG_DWORD /d 0 /f + rem Allow guest access to network shares. reg.exe add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters" /v "AllowInsecureGuestAuth" /t REG_DWORD /d 1 /f