Created
October 21, 2024 18:55
-
-
Save BladeWDR/ff707b9e2d4def340e67799545dc215f to your computer and use it in GitHub Desktop.
Disable Recall Powershell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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