Your comments

Here is a basic script that you can use with GPO to accomplish this for now.

clear

#Find the full Distinguished name of the computer without using Get-AdComputer

$filter = "(&(objectCategory=computer)(objectClass=computer)(cn=$env:COMPUTERNAME))"

$disName = ([adsisearcher]$filter).FindOne().Properties.distinguishedname

#Split Full Distinguished name into usable fields for URL

$ouArray = $disName.Split(",")

#Remove Unwatned contents of the string

foreach ($ou in $ouArray) {

$ouArray[$ouArray.IndexOf($ou)] = $ou.SubString(3)

}

#Build the download link for ScreenConnect

#Enter the Base URL for your ScreenConnect Instance (This is required and can be retrieved by building an MSI installer from your ScreenConnect Console with no custom properties defined and then removing "&c=&c=&c=&c=&c=&c=&c=" from the end of the provided URL

$downloadBase = "Your Base URL Here"

#Modify this string depending on your specific OU structure and how you want it to map to your fields

$finalURL = $downloadBase + $ouArray[5] + "&c="+ $ouArray[4] + "&c="+ $ouArray[3] + "&c="+ $ouArray[2] + "&c="+ $ouArray[1] + "&c=&c=&c="

#Create clean Location for the file download

if (-Not (Test-Path C:\SC-Temp)) {

New-Item -Path "c:\" -Name "SC-Temp" -ItemType "directory" -Force | Out-Null

}else {

Remove-Item 'C:\SC-Temp' -Recurse -Force

New-Item -Path "c:\" -Name "SC-Temp" -ItemType "directory" -Force

}

#Download the MSI for installation

$downloadPath = "C:\SC-Temp\ScreenConnect.msi"

Invoke-WebRequest -Uri $finalURL -OutFile $downloadPath

#Install ScreenConnect Client Silently

Start-Process msiexec.exe -ArgumentList '/I',$downloadPath, '/qn' -Wait

#Clean up remaining Files

Remove-Item 'C:\SC-Temp' -Recurse -Force

Let me know if you have any questions

Couldn't agree more....  Have been actively considering other products because of this