0 0

Install DisplayFusion

Detection:

$targetVersion = "11.1.1.0"
$displayFusionPath = "C:\Program Files\DisplayFusion\DisplayFusion.exe"
if (Test-Path $displayFusionPath) {
    $version = [System.Version]::Parse((Get-Item $displayFusionPath).VersionInfo.ProductVersion)
    if ($version.ToString() -eq $targetVersion) {
        Write-Host "DisplayFusion is up to date: $($version.ToString())"
        Exit 0
    } else {
        Write-Host "DisplayFusion is not up to date: $($version.ToString())"
        Exit 1
    }
} else {
    Write-Output "DisplayFusion.exe not found in C:\Program Files\DisplayFusion"
    Exit 1
}

Remediation:

$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest -Uri https://binaryfortressdownloads.com/Download/BFSFiles/101/DisplayFusionMSI-11.1.1c.zip -Proxy http://proxy.ezorg.nl:8080 -ProxyUseDefaultCredentials -OutFile C:\Users\Public\Downloads\DisplayFusionMSI-11.1.1c.zip
Expand-Archive -LiteralPath 'C:\Users\Public\Downloads\DisplayFusionMSI-11.1.1c.zip' -DestinationPath C:\Users\Public\Downloads -Force
msiexec.exe /i "C:\Users\Public\Downloads\DisplayFusionSetup-11.1.1.msi" /qn CUSTOM1="/VERYSILENT" LAUNCHAFTER=0 LKEYALL="101-02-SDBCN2A35B-RBYNX2FE9A-zyd03mTZJQduD17fzXmsrSUv1sLcldA9AfpB8G03or0OATYWilInMx5pn6PNMGzgFAJlMSBueXDK8MaOURtqguPcGGMlq95NKmA9FpG7g6NKyLkRAne1KD9A_t44_RZSsJxT8LqroZwFcFvYEv7yWMHVf1Hb5JYmdqPq6RfKxhMHaBjYnL6KDHt9VR24VP4eLjnbbdMsxsTW8USb3VS0NmqYkCXBwIUu0oO1pJTNoI0=" STARTUPALL=1 STARTUPUSER=0