$iniFilePath = "$env:APPDATA\Greenshot\Greenshot.ini" if (Test-Path $iniFilePath) { Set-Content -Path $iniFilePath -Value (Get-Content $iniFilePath | Foreach-Object { $_ -replace 'ShowTrayNotification=True', 'ShowTrayNotification=False' }) } else { Write-Output "Greenshot.ini-Datei konnte nicht gefunden werden." }