Skip to content

Instantly share code, notes, and snippets.

@gamersalpha
Created October 21, 2024 07:30
Show Gist options
  • Save gamersalpha/786c408ab86cf4b0887be16f462d7f43 to your computer and use it in GitHub Desktop.
Save gamersalpha/786c408ab86cf4b0887be16f462d7f43 to your computer and use it in GitHub Desktop.
Information recall WIndows
# Obtenir la version de Windows
$windowsVersion = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").ReleaseId
$windowsBuild = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion").CurrentBuild
# Afficher la version et le build
Write-Host "Version de Windows : $windowsVersion"
Write-Host "Build de Windows : $windowsBuild"
# Vérifier si la fonctionnalité "Recall" est activée
$RecallEnabled = Dism /online /Get-FeatureInfo /FeatureName:Recall | findstr /B /C:"State"
If ($RecallEnabled -Match 'State : Enabled') {
Write-Host "La fonctionnalité 'Recall' est activée. Désactivation en cours..."
DISM /Online /Disable-Feature /FeatureName:Recall
Write-Host "La fonctionnalité 'Recall' a été désactivée."
} else {
Write-Host "La fonctionnalité 'Recall' est déjà désactivée."
}
@M8anu
Copy link

M8anu commented Oct 21, 2024

Thank you for the contribution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment