mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-07 04:01:52 +01:00
CHANGELOG:
- Fixed: Restore Mode manual module selection crash (Critical)
- Root cause: .Split(',', ';', ' ') triggered wrong .NET overload
- Fix: Replaced with native PowerShell -split '[,; ]' operator
- Reported by: KatCat2
VERSION BUMP: 2.2.2 -> 2.2.3
- Updated 48 files with new version number
- CHANGELOG.md: Added v2.2.3 release notes
- README.md: Updated badge, module table, project status
50 lines
1.4 KiB
PowerShell
50 lines
1.4 KiB
PowerShell
<#
|
|
.SYNOPSIS
|
|
Microsoft Security Baseline for Windows 11 25H2
|
|
|
|
.DESCRIPTION
|
|
Implements all 425 Microsoft Security Baseline settings:
|
|
- 330 Computer Registry policies
|
|
- 5 User Registry policies
|
|
- 67 Security Template settings
|
|
- 23 Advanced Audit Policies
|
|
|
|
Auto-detects domain membership and applies appropriate adjustments.
|
|
|
|
.NOTES
|
|
Author: NexusOne23
|
|
Version: 2.2.3
|
|
Requires: PowerShell 5.1+, Administrator privileges
|
|
#>
|
|
|
|
# Get the module root path
|
|
$ModuleRoot = $PSScriptRoot
|
|
|
|
# Dot source all Private functions
|
|
$PrivatePath = Join-Path $ModuleRoot "Private"
|
|
if (Test-Path $PrivatePath) {
|
|
Get-ChildItem -Path $PrivatePath -Filter "*.ps1" | ForEach-Object {
|
|
try {
|
|
. $_.FullName
|
|
}
|
|
catch {
|
|
Write-Host "WARNING: Failed to import private function $($_.Name): $_" -ForegroundColor Yellow
|
|
}
|
|
}
|
|
}
|
|
|
|
# Dot source all Public functions
|
|
$PublicPath = Join-Path $ModuleRoot "Public"
|
|
if (Test-Path $PublicPath) {
|
|
Get-ChildItem -Path $PublicPath -Filter "*.ps1" | ForEach-Object {
|
|
try {
|
|
. $_.FullName
|
|
}
|
|
catch {
|
|
Write-Host "WARNING: Failed to import public function $($_.Name): $_" -ForegroundColor Yellow
|
|
}
|
|
}
|
|
}
|
|
|
|
# Export only public functions
|
|
Export-ModuleMember -Function Invoke-SecurityBaseline, Restore-SecurityBaseline, Restore-RegistryPolicies
|