Skip to content

Commit 30e7d0b

Browse files
authored
Create DisableWindowsRecall.ps1
1 parent d39c7a5 commit 30e7d0b

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

DisableWindowsRecall.ps1

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# PowerShell script to disable Windows Recall
2+
3+
# Disable Recall via Registry
4+
5+
$regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsAI" $regName = "AllowRecallEnablement" $regValue = 0
6+
7+
# Create registry key if it does not exist
8+
9+
if (!(Test-Path $regPath)) { New-Item -Path $regPath -Force | Out-Null }
10+
11+
# Set the registry value to disable Recall
12+
13+
Set-ItemProperty -Path $regPath -Name $regName -Value $regValue -Type DWord
14+
15+
# Stop and disable Recall-related service (if applicable)
16+
17+
$serviceName = "RecallService" # Replace with actual service name if known if (Get-Service -Name $serviceName -ErrorAction SilentlyContinue) { Stop-Service -Name $serviceName -Force Set-Service -Name $serviceName -StartupType Disabled }
18+
19+
# Confirm changes
20+
21+
Write-Host "Windows Recall has been disabled. Please restart your computer for changes to take effect."
22+

0 commit comments

Comments
 (0)