Skip to Content
All Blog Posts

Disable Update Notifications for Jabra Direct

 — #SCCM#Intune#PowerShell

Update 18/07/2023

A new post goes into how to detect the incorrect settings in the config.json and use remediations to amend the settings.

When packaging and deploying Jabra Direct there is not an option to disable update notifications during install. This script can be deployed from either SCCM or Intune to user devices, when the script runs it will edit the Config.json file in %appdata%\Jabra Direct\. The value for DirectShowNotification is amended to $false and the Config.json file is saved. It will also stop the Jabra-Direct process to ensure there is no lock on the config file when it is being updated.

PowerShell

JabraDirect-DisableUpdateNotifications.ps1
Stop-Process -ProcessName jabra-direct -force -ErrorAction SilentlyContinue

    Write-Output "- Configure Jabra Direct"
    $json = "$([Environment]::GetFolderPath("ApplicationData"))\Jabra Direct\config.json"
    If (Test-path("$json")) {
        Write-Output "-- Found the Config File, applying changes"
        $a = Get-Content "$json" -Raw | ConvertFrom-Json

        $a.DirectShowNotification.value = $false
        $a.DirectShowNotification.locked = $false # Application overrides this value to False

        $a | ConvertTo-Json -Depth 3 | Format-Json | Set-Content "$json" -Encoding UTF8
        ((Get-Content "$json") -join "`n") + "`n" | Set-Content -NoNewline "$json"

Resources