From a6fba5dc9a7dc0300d9320476795237e678cd24f Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:31:24 +0900 Subject: [PATCH 1/3] fix: optimize registry path checks in WELA.ps1 --- WELA.ps1 | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 0826840c..8d351a93 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5522,7 +5522,8 @@ function Set-RegistryConfig { foreach ($reg in $RegPaths) { try { $currentValue = "Not Set" - if (Test-Path $reg.Path) { + $pathExists = Test-Path $reg.Path + if ($pathExists) { $prop = Get-ItemProperty -Path $reg.Path -Name $reg.Name -ErrorAction SilentlyContinue if ($prop) { $currentValue = $prop.$($reg.Name) @@ -5540,7 +5541,9 @@ function Set-RegistryConfig { $response = Read-Host "Your current setting is $currentValue. Do you want to change it to $( $reg.Value )? (Y/n)" } if ($response -eq "" -or $response -eq "Y" -or $response -eq "y") { - New-Item -Path $reg.Path -Force | Out-Null + if (-not $pathExists) { + New-Item -Path $reg.Path -Force | Out-Null + } Set-ItemProperty -Path $reg.Path -Name $reg.Name -Value $reg.Value -Type DWord Write-Host "[OK] Set $($reg.Name)" -ForegroundColor Green } else { @@ -6063,4 +6066,4 @@ switch ($Cmd.ToLower()) { Write-Host "Invalid command. Use 'help' to see available commands." Write-Host $usage } -} \ No newline at end of file +} From a90b6caeeded666c9468aeff08fc695809040180 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Thu, 12 Feb 2026 23:35:55 +0900 Subject: [PATCH 2/3] fix: improve module logging path checks in WELA.ps1 --- WELA.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 8d351a93..da261d0c 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5717,7 +5717,8 @@ function ConfigureAuditSettings { try { $moduleLoggingPath = "HKLM:\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\PowerShell\ModuleLogging\ModuleNames" $currentValue = "Not Set" - if (Test-Path $moduleLoggingPath) { + $pathExists = Test-Path $moduleLoggingPath + if ($pathExists) { $prop = Get-ItemProperty -Path $moduleLoggingPath -Name "*" -ErrorAction SilentlyContinue if ($prop) { $currentValue = $prop."*" @@ -5739,7 +5740,10 @@ function ConfigureAuditSettings { } if ($response -eq "" -or $response -eq "Y" -or $response -eq "y") { - New-Item -Path $moduleLoggingPath -Force | Out-Null + if (-not $pathExists) + { + New-Item -Path $moduleLoggingPath -Force | Out-Null + } Set-ItemProperty -Path $moduleLoggingPath -Name "*" -Value "*" -Type String Write-Host "[OK] Module logging enabled for all modules" -ForegroundColor Green } From f8d259e89553b81a9b55a2a02795e1ceff56b95b Mon Sep 17 00:00:00 2001 From: YamatoSecurity Date: Fri, 13 Feb 2026 09:28:11 +0900 Subject: [PATCH 3/3] update changelog --- CHANGELOG-Japanese.md | 6 ++++++ CHANGELOG.md | 6 ++++++ WELA.ps1 | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG-Japanese.md b/CHANGELOG-Japanese.md index 191ae9fc..a1a7a772 100644 --- a/CHANGELOG-Japanese.md +++ b/CHANGELOG-Japanese.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.1.0 [2026/02/13] - Winter Release + +**バグ修正:** + +- 設定によりドメインコントローラのNetlogonが破損する可能性があった。 (#243) (@fukusuket) (この件を報告してくれた@feiglein74に感謝!) + ## 2.0.0 [2025/11/16] - CODE BLUE リリース **新機能:** diff --git a/CHANGELOG.md b/CHANGELOG.md index ea5e2714..3129a6da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## 2.1.0 [2026/02/13] - Winter Release + +**Bug Fixes:** + +- Configuration might break Netlogon on Domain Controllers. (#243) (@fukusuket) (Thanks to @feiglein74 for reporting this!) + ## 2.0.0 [2025/11/16] - CODE BLUE Release **New Features:** diff --git a/WELA.ps1 b/WELA.ps1 index da261d0c..e67830e5 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5989,7 +5989,7 @@ Usage: [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 Write-Host $logo -ForegroundColor Green Write-Host "" -Write-Host "WELA v2.0.0 - CODE BLUE Release" +Write-Host "WELA v2.1.0 - Winter Release" Write-Host "" switch ($Cmd.ToLower()) {