Created
October 21, 2024 07:30
-
-
Save gamersalpha/786c408ab86cf4b0887be16f462d7f43 to your computer and use it in GitHub Desktop.
Information recall WIndows
This file contains 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
# 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." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for the contribution