Hello Everyone,
I’m trying to deploy a 3rd party software, SRSRec, through SCCM. When this application installs, it generates a unique GUID. Each PC it installs on will have a different GUID for the same application. Because of this, I can’t use a simple registry entry for the detection method. This application will have new upgrade versions in the future.
I need to use the Powershell detection method because the only common indication for the current version ID across all of the PCs after a successfull installation is inside a .xml file.
Inside the Description.xml file, it contains the current version number “8.5.343.5”. This xml file is located in the install directory: c:\program files (x86)\SrSrec\description.xml.
I basically want the detection method to day, if it can’t find this path with this version number that will tell SCCM the application is not installed.
Powershell:
if ((get-content -path 'c:\program files (x86)\SrSrec\description.xml | select-string -pattern “8.5.343.5”) -eq $null)
{
}
else
{
}
Problems I am running into:
In my test environment(three test PCs), I initially used a registry detection method(from one of the test PCs I did a manual install). Software center on all three test PCs displayed the SrSrec software in Software Center. However after I switched to Powershell Detection method, only the 1 of the three now shows SrSrec in Software Center. I refresh and pulled on the other two, still not showing software. I verified that Powershell script is set to bypass in the client settings.
I need help, I am not sure if the issue is due to my PS script or something else.
Thanks in advance for any help!