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>
58 lines
1.4 KiB
PowerShell
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.4
|
|
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.4: 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')
|