Last active
January 5, 2024 14:57
-
-
Save zakuroishikuro/00f60d61b19d574820b9f238e4abeeae to your computer and use it in GitHub Desktop.
kill lenovo vantage cleaning mode
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
$filePath = "C:\ProgramData\Lenovo\Vantage\Addins\ThinkKBDAddin\*\LenovoVantage.CleanYourDevice.exe" | |
$acl = Get-Acl $filePath | |
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule("Everyone", "Execute", "Deny") | |
$acl.SetAccessRule($rule) | |
Set-Acl -Path $filePath -AclObject $acl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.reddit.com/r/Lenovo/comments/11snvjp/is_there_a_way_to_disable_cleaning_mode/