mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-04-05 15:27:21 +02:00
Some checks failed
CI - PowerShell Quality Checks / PSScriptAnalyzer (push) Has been cancelled
CI - PowerShell Quality Checks / Test on PowerShell 5.1 (push) Has been cancelled
CI - PowerShell Quality Checks / Test on PowerShell 7.4 (push) Has been cancelled
CI - PowerShell Quality Checks / Validate Project Structure (push) Has been cancelled
Pester Tests / test (push) Has been cancelled
Version bump across 62 files (2.2.3 → 2.2.4). CHANGELOG.md: New [2.2.4] section with EDR/XDR detection and version tooling. README.md: Updated release highlights, AV detection example output synced with code. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.4
|
|
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
|