mirror of
https://github.com/NexusOne23/noid-privacy.git
synced 2026-02-07 12:11:53 +01:00
- Remove non-existent Backup/Restore-AntiAISettings from AntiAI.psm1 loader - Remove non-existent Restore-PrivacySettings from Privacy.psm1 loader - Update New-DefaultConfig: EdgeHardening 20->24, AdvancedSecurity 36->50 - Add missing options: nonInteractive, autoConfirm, module-specific settings - Fix CHANGELOG.md: AntiAI 24->32, EdgeHardening 20->24, AdvancedSecurity 44->50
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.2
|
|
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.2: 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')
|