Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING I get an error when deploying an application with .exe extension with Powershell.

  • Thread starter Thread starter MyServer
  • Start date Start date
  • Replies Replies 0
  • Views Views 352

MyServer

New Member
Messages
1
Reaction score
0
Points
1
Hello everyone,
I am trying to deploy my application with .exe extension in SCCM 2204 in my lab environment. I have examined the source on your site and found it very successful, but although the deployment is successful, I get the error I show in the attachment. I think there is a problem with program detection. I also followed the instructions on your site, but I could not see it in the "Detection Rule" field in the programme I deployed. Can you help me with this issue? I share the scripts I use

New-CMApplication -Name "Foxit_Reader" -Description "Foxit PDF Reader" -Publisher Gegi -SoftwareVersion 2023.3.0.23028
$clause = New-CMDetectionClauseRegistryKeyValue -Hive LocalMachine -KeyName 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Foxit' -PropertyType Version -ValueName 'DisplayVersion' -Value -ExpectedValue '1.2.3.4' -ExpressionOperator GreaterEquals
$contentpath = '\\SRVSCCM01\ContentSource$\Applications\Foxit'
Add-CMScriptDeploymentType -ApplicationName FoxtReader64 -DeploymentTypeName DT_Script_Foxit -InstallCommand 'Foxit_Reader.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NORESTART' -UninstallCommand '%ProgramFiles%\Foxit\uninstall.exe /S' -AddDetectionClause $clause -ContentLocation $ContentPath -InstallationBehaviorType InstallForSystem -EstimatedRuntimeMins 10 -LogonRequirementType WhetherOrNotUserLoggedOn
Start-CMContentDistribution -ApplicationName "FoxtReader64" -DistributionPointName 'SRVSCCM01.tech.local'
New-CMApplicationDeployment -ApplicationName "FoxtReader64" -CollectionName "All Systems" -DeployAction Install -DeadlineDateTime (get-date) -DeployPurpose Required -UserNotification DisplayAll


1706113377985.png
1706113087888.png
 
Back
Top