From 8f7ad249fb5f885806b5c4e07f6dcb09989be1dc Mon Sep 17 00:00:00 2001 From: Richard Newton Date: Sat, 18 Aug 2018 23:39:23 -0700 Subject: [PATCH] Created Disable Cortana File This contains the code that is used in the DisableCortana Function. --- Individual Scripts/Disable Cortana | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Individual Scripts/Disable Cortana diff --git a/Individual Scripts/Disable Cortana b/Individual Scripts/Disable Cortana new file mode 100644 index 0000000..7ee8040 --- /dev/null +++ b/Individual Scripts/Disable Cortana @@ -0,0 +1,17 @@ +Write-Host "Disabling Cortana" + $Cortana1 = "HKCU:\SOFTWARE\Microsoft\Personalization\Settings" + $Cortana2 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization" + $Cortana3 = "HKCU:\SOFTWARE\Microsoft\InputPersonalization\TrainedDataStore" + If (!(Test-Path $Cortana1)) { + New-Item $Cortana1 + } + Set-ItemProperty $Cortana1 AcceptedPrivacyPolicy -Value 0 + If (!(Test-Path $Cortana2)) { + New-Item $Cortana2 + } + Set-ItemProperty $Cortana2 RestrictImplicitTextCollection -Value 1 + Set-ItemProperty $Cortana2 RestrictImplicitInkCollection -Value 1 + If (!(Test-Path $Cortana3)) { + New-Item $Cortana3 + } + Set-ItemProperty $Cortana3 HarvestContacts -Value 0