We're running SCCM 2012 now and I've found that there is no quick and easy way to just run a quick batch file or script on a computer or group of computers. I have to create a package and collection that I may never use again and it's not real time it may take an hour or more for the job to run. Anyway so I was wondering what others are using to run quick batch files or scripts on their remote network computers??

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Community Chosen Answer

1

look at using pstools - psexec command

you can run it on a single or group of machines.

Answered 12/03/2013 by: SMal.tmcc
Red Belt

Please log in to comment

Answers

0

You do not need to create a package, you can use the Scripting function of K1000

There a 3 possibilities.

  1. Offline KScripts
  2. Online KScripts
  3. Online Shell Scripts

See this output from KACE to decide what script type you need.

Offline KScripts will execute at a specific time based on each client's clock, and can even execute when the machine is not connected to the K1000, such as Machine Boot Up and User Login. They are built using a wizard. See more details in the KScript help below next to Policy and Job Rules. 

Online KScripts are built just like Offline KScripts, but will execute at a specific time based on the server clock instead of the client clock. Only machines that are connected at the designated time will be targeted for execution. 

Online Shell Scripts will execute at a specific time based on the server clock. Instead of building the script through the task wizard, shell scripts are simple text commands specific to the operating system. Batch files are supported on Windows, along with all manner of shell script formats supported by the specific operating system of the targeted machines.

Answered 12/03/2013 by: aragorn.2003
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share