"Content" : " Logitech Download Assistant Auto-Install - Disable " ,
"Description" : " Blocks the Logi Download Assistant that Windows Update keeps reinstalling with Logitech device drivers. Logitech hardware keeps working without it. " ,
"category" : " z__Advanced Tweaks - CAUTION " ,
Stop-Process -Name \" logi_download_assistant \" -Force -ErrorAction SilentlyContinue
$ProgramFiles64 = if ($Env:ProgramW6432) { $Env:ProgramW6432 } else { $Env:ProgramFiles }
$LogiPath = \" $ProgramFiles64 \\ LogiDownloadAssistant \"
if (Test-Path $LogiPath) {
Remove-Item $LogiPath \\ * -Recurse -Force
New-Item -Path $LogiPath -ItemType Directory
icacls $LogiPath /deny \" *S-1-1-0:(W) \"
if ($LASTEXITCODE -ne 0) { throw \" icacls failed to deny write access on $LogiPath (exit code $LASTEXITCODE) \" }
$ProgramFiles64 = if ($Env:ProgramW6432) { $Env:ProgramW6432 } else { $Env:ProgramFiles }
$LogiPath = \" $ProgramFiles64 \\ LogiDownloadAssistant \"
if (Test-Path $LogiPath) {
icacls $LogiPath /remove:d \" *S-1-1-0 \"
if ($LASTEXITCODE -ne 0) { throw \" icacls failed to remove the write-deny rule on $LogiPath (exit code $LASTEXITCODE) \" }