Help Desk, NOC, Ded Tech Service

Help Desk Chat Deployment Issues

  • 1.  Help Desk Chat Deployment Issues

    Posted 05-10-2024 01:06 PM

    Hello,

    Looking to see if anyone is having issues with Help Desk Chat custom icon deployment. We noticed a few issues and we have a script to repair the custom icon deployment. We created a quick script to correct the issue, it appears the config file "C:\Program Files (x86)\SAAZOD\zSCC\HDChat\Icon" was pointing to http instead of https.

    Please note we are happy to fix this for you, you can reach out to us so we can assist you quickly on this issue.

    If you prefer to fix it yourself here is a quick script you can run to do it yourself, this is a powershell script that can be ran through devices:

    #Powershell Script
    # Fetch Config link
    $xmlFilePath = "C:\Program Files (x86)\SAAZOD\zSCC\HDChat\HDChat.xml"
    $xmlContent = [xml](Get-Content $xmlFilePath)
    write-host "Icon File " $xmlContent.dcmgetdskchatclient.icon.'#cdata-section'
    write-host "----"
    $iconUrl = $xmlContent.dcmgetdskchatclient.icon.'#cdata-section'
    $proceed = $true
    $shortcutPath = "C:\Users\Public\Desktop\Help Desk Chat.lnk"
    
    # Update Config Link
    if ($iconUrl -notmatch 'https://') {
        $iconUrl = 'https://' + $iconUrl.Substring(7)
        $xmlContent.dcmgetdskchatclient.icon.'#cdata-section' = $iconUrl
        $xmlContent.Save($xmlFilePath)
        Write-Host "Config File Updated"
        $proceed = $true
    }
    
    if ($proceed) {
        # Download the ico from config link
        $fileName = [System.IO.Path]::GetFileName($iconUrl)
        Invoke-WebRequest -Uri $iconUrl -OutFile (Join-Path -Path ("C:\Program Files (x86)\SAAZOD\zSCC\HDChat\Icon") -ChildPath $fileName)
    
        # Link the ico to the public desktop shortcut
        $updateShortcut = Test-Path -Path $shortcutPath
        if ($updateShortcut) {
            $WshShell = New-Object -ComObject WScript.Shell
            $Shortcut = $WshShell.CreateShortcut($shortcutPath)
            $Shortcut.IconLocation = (Join-Path -Path ("C:\Program Files (x86)\SAAZOD\zSCC\HDChat\Icon") -ChildPath $fileName)
            $Shortcut.Save()
            write-host "Custom Public Desktop Icon is updated"
        } 
        else { 
            write-host "No Public Desktop Icon deployed"
        }
    }
    else {
        write-host "Custom Public Desktop Icon is already deployed"
    }


    ------------------------------
    Grant Greenawalt
    Manager, Automation Engineer
    ConnectWise
    ------------------------------