10 lines
378 B
PowerShell
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 |