Skip to content

Instantly share code, notes, and snippets.

@BladeWDR
Created October 21, 2024 18:55
Show Gist options
  • Save BladeWDR/ff707b9e2d4def340e67799545dc215f to your computer and use it in GitHub Desktop.
Save BladeWDR/ff707b9e2d4def340e67799545dc215f to your computer and use it in GitHub Desktop.
Disable Recall Powershell script
$TempDir = 'C:\Temp'
if(-not (Test-Path -Path "$TempDir" -PathType Container)){
New-Item -Path "$TempDir" -ItemType Directory
}
Start-Transcript -Path "$TempDir\Disable-Recall-Scheduled-Task.log" -Force
$WindowsDisplayVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").DisplayVersion
$RecallEnabled = Dism /online /Get-FeatureInfo /FeatureName:Recall | findstr /B /C:"State"
Get-ComputerInfo | Select-Object OSName, OSVersion, OsHardwareAbstractionLayer
Write-Host "Windows Display Version: $WindowsDisplayVersion"
if ($RecallEnabled -Match 'State : Enabled'){
DISM /Online /Disable-Feature /featurename:Recall
Write-Host "Recall was enabled, disabled it."
}
else{
Write-Host "Recall was already disabled or does not exist on this system."
}
Stop-Transcript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment