Files
Intune/intune/Externally Sourced Remediations/Miscellaneous/Disable-WindowsAI-Registry/remediate-windowsai-regkey-hkcu.ps1
2025-05-19 15:19:36 -04:00

10 lines
378 B
PowerShell

##Enter the path to the registry key
$regpath = "HKCU:\Software\Policies\Microsoft\Windows\WindowsAI"
##Enter the name of the registry key
$regname = "DisableAIDataAnalysis"
##Enter the value of the registry key
$regvalue = "1"
##Enter the type of the registry key
$regtype = "DWord"
New-ItemProperty -Path $regpath -Name $regname -Value $regvalue -PropertyType $regtype -Force