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 Deploying application as PowerShell script

  • Thread starter Thread starter dj3094
  • Start date Start date
  • Replies Replies 4
  • Views Views 1K

dj3094

Well-Known Member
Messages
241
Reaction score
7
Points
18
hello all
I am trying to deploy Nagios and created powershell script and batch script which works good manually. When I deploy powershell script it exit with success, but wont install anything. When I deploy the batchscript it install sometimes and it wont sometimes as application. When I deploy the batchscript as package it stuck on install.

Any suggestions?

Thanks
 
Without seeing your batch file or powershell shell, people can only guess at the answer.
 
hello

#Script to Install NAgios Client

#Check the OS architecture
if ((gwmi win32_operatingsystem | select osarchitecture).osarchitecture -eq "64-bit")
{

msiexec.exe /L* "c:\NSClient.log" /qn /I ".\NSCP-0.5.2.35-x64.msi"
}
else
{
msiexec.exe /L* "c:\NSClient.log" /qn /I ".\NSCP-0.5.2.35-Win32.msi"
}
 
Did everything download?
Is this a package or application? What does the sccm client log say?
What the the log file NSClient.log say?
 
it downloaded everything
its an application
appenforce log say success
it didnt create nsclient.log

We had similar issue with java
we deployed with powershell script as application
log files say success.

Now I deployed NSClient with batch files seems to be working
 
Back
Top