Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

How to properly deploy a .bat file

Hello,

Package deployment works fine on our machines, most are Windows 10, some are Windows 8.1.

When i try to deploy a .bat file to run certain commands in preparation for another package deployment, in some machines it gives an error and in some other machines it just keeps saying "Notified.." and thats it.

I am deploying them using "Launch"

From what i understand deploying a .bat script or even a powershell script is the same as deploying any other package, so im not sure what im doing wrong.

Any suggestions is appreciated.
in OCS Inventory NG server for Windows by (120 points)

3 Answers

0 votes
are you sure that you zipped the bat file?

I always use the extension cmd instead of bat.

Then i zip the cmd file and upload it and i use the launch command
by (24.5k points)
0 votes
@sokatra

What do you write in launch command?

Only the name of .cmd or .bat file?

The packages are downloaded to temp directory or ocs download inventory?
by (140 points)
0 votes

hy, you just have to enter the name of the bat file.

NO path should be uses

just for example

mybat.cmd

That is all.

Im the cmd batch file you can use any command line command.

Like

@echo off

AdbeRdr11009_en_US.exe /qn /sAll /rs /l /msi /qb- /norestart EULA_ACCEPT=YES REMOVE_PREVIOUS=YES DISABLE_ARM_SERVICE_INSTALL=1 UPDATE_MODE=0

Kind regards

Sokatra

by (24.5k points)
 
Powered by Question2Answer
...