Hi. I'm VERY new to SCCM and have run into an issue which I'm sure is a simple fix but has me stumped.
I've been asked to package up a job which is in two parts. The first is to run an exe file which is located on all of our clients, followed by running a file to change the registry. The first involves running the following command;
"C:\Program Files\Palo Alto Networks\GlobalProtect\PanGPS.exe" -registerplap
The second involves running a .reg file.
I initially created a text file with the line in red above, saved it as a .cmd file and ran it manually on a VM and it ran fine. The .reg file also runs fine when ran manually.
What is the best way to run the two of them via SCCM please? I initially saved both files to my primary server and created a package, with no program, pointing to the saved location. I then created a Task Sequence with two command line steps. The first, pointing to the .cmd file and the second to the .reg file. When trying to run the Task Sequence, the job fails with the error code 1.
Any help is greatly appreciated because, as I say, I'm coming at this with very little knowledge. Thanks