noid-privacy/Modules/AntiAI/AntiAI.psm1
NexusOne23 da9f937ee8 release: v2.2.3 - Fix Restore Mode module selection crash
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
2026-01-07 18:46:14 +01:00

58 lines
1.4 KiB
PowerShell

#Requires -Version 5.1
#Requires -RunAsAdministrator
<#
.SYNOPSIS
AntiAI Module Loader
.DESCRIPTION
Disables all Windows 11 AI features using official Microsoft policies.
Includes Recall, Copilot, Paint AI, Notepad AI, Click to Do, Settings Agent, and Explorer AI Actions.
.NOTES
Module: AntiAI
Version: 2.2.3
Author: NoID Privacy
#>
Set-StrictMode -Version Latest
# Get module root path
$script:ModuleRoot = $PSScriptRoot
# Import private functions
$privateFunctions = @(
'Test-AntiAICompliance'
'Set-SystemAIModels'
'Disable-Recall'
'Set-RecallProtection'
'Disable-Copilot'
'Disable-CopilotAdvanced' # NEW v2.2.3: URI handlers, Edge sidebar, Recall export
'Disable-ClickToDo'
'Disable-SettingsAgent'
'Disable-ExplorerAI' # NEW: File Explorer AI Actions menu
'Disable-NotepadAI'
'Disable-PaintAI'
)
foreach ($function in $privateFunctions) {
$functionPath = Join-Path $ModuleRoot "Private\$function.ps1"
if (Test-Path $functionPath) {
. $functionPath
}
}
# Import public functions
$publicFunctions = @(
'Invoke-AntiAI'
)
foreach ($function in $publicFunctions) {
$functionPath = Join-Path $ModuleRoot "Public\$function.ps1"
if (Test-Path $functionPath) {
. $functionPath
}
}
# Export public functions + Test-AntiAICompliance (needed for Invoke-AntiAI verification)
Export-ModuleMember -Function @($publicFunctions + 'Test-AntiAICompliance')