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!

SOLVED Unmatched exit code (1) is considered an execution failure

Status
Not open for further replies.

JAYJ

Member
Messages
10
Reaction score
1
Points
3
Command line: Powershell.exe -ExecutionPolicy Bypass -file "BackupAgent_Install.ps1"


Same script works fine manually on PC. However if i execute via SCCM, it throws an error. Installation is not successful.

Kindly advise to resolve this.

Error: AppEnforce log
Process 10964 terminated with exitcode: 1
Unmatched exit code (1) is considered an execution failure
 
Without seeing the script can only say that either there's an uncaught throw or an intentional exit returning 1. Can you attach the script?
 
Without seeing the script can only say that either there's an uncaught throw or an intentional exit returning 1. Can you attach the script?

Thank you Sam for your response.

However i noticed, it is application behavior. If SCCM executes the script, application exe unable to download the patches from internet. If i execute the same script manually, it downloads the hot fix patches from internet. This i noticed from application(.exe) created log files.

Apologize for the trouble.

Jay
 
Thank you Everyone. Since above error related to application behavior, i am closing this ticket.
 
Status
Not open for further replies.

Forum statistics

Threads
7,165
Messages
27,971
Members
18,271
Latest member
prashantrm

Trending content

Back
Top