From f17a6327ddebcb1e14d3a588dbfa0fa41e7a21e2 Mon Sep 17 00:00:00 2001 From: M4ster SINISTER <91175533+MasterSINISTER@users.noreply.github.com> Date: Thu, 11 Jul 2024 12:21:29 +0530 Subject: [PATCH] Create Disable-WindowsRecall.ps1 --- src/scripts/Disable-WindowsRecall.ps1 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/scripts/Disable-WindowsRecall.ps1 diff --git a/src/scripts/Disable-WindowsRecall.ps1 b/src/scripts/Disable-WindowsRecall.ps1 new file mode 100644 index 00000000..f70cb74b --- /dev/null +++ b/src/scripts/Disable-WindowsRecall.ps1 @@ -0,0 +1,13 @@ +# This script disables the Windows Recall feature. You can run it with administrative privileges. +# To run this script, open PowerShell as an administrator and execute the following command: +# .\Disable-WindowsRecall.ps1 + +$registryPath = "HKLM:\SYSTEM\CurrentControlSet\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" + +if (-Not (Test-Path $registryPath)) { + Write-Output "Registry path not found: $registryPath" + exit +} +Set-ItemProperty -Path $registryPath -Name "Start" -Value 0 +Write-Output "Windows Recall has been disabled." +