Link to home
Create AccountLog in
Avatar of DonaldWilliams
DonaldWilliams

asked on

Using SCCM to push out a batch file to run

I have created a batch file that I need to run on Pc's/Servers with the SCCM client, and I was wondering if there was any special way the "packages" needed to be configured, or it there were any special commands I need to type in the command line for the new "program".

Thanks,
Avatar of MarkieS
MarkieS
Flag of United Kingdom of Great Britain and Northern Ireland image

Your program line will need to be

cmd.exe /c "c:\mybatchfile.bat"

or

cmd.exe /c "\\servername\servershare\mybatchfile.bat"


cheers
MarkieS
You can also do it as a Task Sequence, Advertised to machines with a one step Task Sequence "Run a command line"

Again - the command line will be as above
Avatar of DonaldWilliams
DonaldWilliams

ASKER

Oh, so I DON'T copy the batch file to the distribution servers? Just make a folder on a server share, dump the batch file in that, and create a "program" that just runs the batch file from that share?
Also, what do I do about "source files", say that there are none? How about distributing the package to the dist servers; do I have to do that?

I just need to know the correct steps, never did a batch file before with SCCM.
ASKER CERTIFIED SOLUTION
Avatar of windows7expert
windows7expert

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
got it, thanks!!!