mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-07 12:11:53 +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
62 lines
1.6 KiB
PowerShell
62 lines
1.6 KiB
PowerShell
#Requires -Version 5.1
|
|
#Requires -RunAsAdministrator
|
|
|
|
<#
|
|
.SYNOPSIS
|
|
EdgeHardening Module Loader
|
|
|
|
.DESCRIPTION
|
|
Loads all private and public functions for the EdgeHardening module.
|
|
Applies Microsoft Edge v139+ Security Baseline using native PowerShell.
|
|
|
|
NO EXTERNAL DEPENDENCIES:
|
|
- No LGPO.exe required
|
|
- Native PowerShell Set-ItemProperty
|
|
- Built-in Windows tools only
|
|
|
|
.NOTES
|
|
Author: NexusOne23
|
|
Version: 2.2.3
|
|
Requires: PowerShell 5.1+, Administrator privileges
|
|
#>
|
|
|
|
# Module variables
|
|
$script:ModuleName = "EdgeHardening"
|
|
$script:ModuleRoot = $PSScriptRoot
|
|
|
|
# Load Private functions
|
|
$privateFunctions = @(
|
|
'Set-EdgePolicies.ps1',
|
|
'Test-EdgePolicies.ps1',
|
|
'Backup-EdgePolicies.ps1',
|
|
'Restore-EdgePolicies.ps1'
|
|
)
|
|
|
|
foreach ($function in $privateFunctions) {
|
|
$functionPath = Join-Path $PSScriptRoot "Private\$function"
|
|
if (Test-Path $functionPath) {
|
|
. $functionPath
|
|
}
|
|
else {
|
|
Write-Host "WARNING: [$script:ModuleName] Private function not found: $function" -ForegroundColor Yellow
|
|
}
|
|
}
|
|
|
|
# Load Public functions
|
|
$publicFunctions = @(
|
|
'Invoke-EdgeHardening.ps1',
|
|
'Test-EdgeHardening.ps1'
|
|
)
|
|
|
|
foreach ($function in $publicFunctions) {
|
|
$functionPath = Join-Path $PSScriptRoot "Public\$function"
|
|
if (Test-Path $functionPath) {
|
|
. $functionPath
|
|
}
|
|
else {
|
|
Write-Host "WARNING: [$script:ModuleName] Public function not found: $function" -ForegroundColor Yellow
|
|
}
|
|
}
|
|
|
|
# Module loaded successfully
|
|
Write-Verbose "[$script:ModuleName] Module loaded successfully from: $PSScriptRoot"
|