Skip to content

Instantly share code, notes, and snippets.

@zakuroishikuro
Last active January 5, 2024 14:57
Show Gist options
  • Save zakuroishikuro/00f60d61b19d574820b9f238e4abeeae to your computer and use it in GitHub Desktop.
Save zakuroishikuro/00f60d61b19d574820b9f238e4abeeae to your computer and use it in GitHub Desktop.
kill lenovo vantage cleaning mode
$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