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,
Thanks,
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
Again - the command line will be as above
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?
ASKER
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.
I just need to know the correct steps, never did a batch file before with SCCM.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
got it, thanks!!!
cmd.exe /c "c:\mybatchfile.bat"
or
cmd.exe /c "\\servername\servershare\
cheers
MarkieS