Package script is working through SCCM, but there’s a deployment error in Intune

TechUST 606 Reputation points
2024-11-10T15:01:47.8833333+00:00

Hi There,

I am working on the Oracle 19c client app. I’ve tried packaging it with both batch and PowerShell scripts, and it’s working manually as well as through SCCM, but when deploying through Intune, it’s giving an error. Could you help me with any modifications needed in the script? I’m not sure if the deployment mechanisms differ between Intune and SCCM. Could you please test my script in your test environment through Intune?

App download link

https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html

1000106660

Ps1 script- # Get current directory

$currentDir = Get-Location

Run Oracle setup.exe in silent mode with specified parameters, using the current directory

Start-Process "$currentDir\setup.exe" -ArgumentList `

"-silent", "-nowait", "-ignoreSysPrereqs", "-ignorePrereqFailure", "-waitForCompletion", "-force", `

'"INVENTORY_LOCATION=C:\Program Files\Oracle\Inventory"', `

'"ORACLE_BASE=C:\app\client\"', `

'"ORACLE_HOME=C:\app\client\product\19.0.0\client_1"', `

'"oracle.install.IsBuiltInAccount=true"', `

'"oracle.install.client.installType=Administrator"', `

'"oracle.install.client.customComponents=oracle.precomp:19.0.0.0.0,oracle.oraolap.mgmt:19.0.0.0.0,oracle.rdbms.scheduler:19.0.0.0.0,oracle.aspnet_2:19.0.0.0.0,oracle.ntoledb.odp_net_2:19.0.0.0.0,oracle.ntoledb:19.0.0.0.0"' `

-NoNewWindow -Wait

Check if Oracle setup executed successfully

if ($LASTEXITCODE -ne 0) {

exit $LASTEXITCODE

}

Batch Script -

setup.exe -silent -nowait -ignoreSysPrereqs -ignorePrereqFailure -waitForCompletion -force "INVENTORY_LOCATION=C:\Program Files\Oracle\Inventory" "ORACLE_BASE=C:\app\client" "ORACLE_HOME=C:\app\client\product\19.0.0\client_1" "oracle.install.IsBuiltInAccount=true" "oracle.install.client.installType=Administrator" "oracle.install.client.customComponents=oracle.precomp:19.0.0.0.0,oracle.oraolap.mgmt:19.0.0.0.0,oracle.rdbms.scheduler:19.0.0.0.0,oracle.aspnet_2:19.0.0.0.0,oracle.ntoledb.odp_net_2:19.0.0.0.0,oracle.ntoledb:19.0.0.0.0"

Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Intune | Other
Microsoft System Center | Other
{count} votes

1 answer

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2024-11-10T15:54:30.7633333+00:00

    What account is Intune executing as? The SYSTEM account? An end user account? Is the user a member of the Administrators group?

    Have your Powershell script generate a transcript. The transcript will tell you what account it is executing as. Add a Start-Transcript at the beginning and Stop-Transcript as the last statement. Check that log file for errors.

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-5.1

    Oracle should be generating a log file. Look there for errors.

    https://docs.oracle.com/en/database/oracle/oracle-database/12.2/ntcli/reviewing-the-log-of-an-installation-session.html

    Check the Application and System event logs on the machine for install errors.

    You don't necessarily need to use Start-Process in the PS script. Just run setup.exe like you would in a .bat file.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.