/build/static/layout/Breadcrumb_cap_w.png

Forcing KACE inventory updates on multiple machines at once.

I ran into a problem whereby I wanted to force inventory updates on a whole lab of computers at once (about 27 machines), however in the K1000 I could only update them one at a time, causing me to spend a lot of time doing this.

I came up with the following solution:

First I installed the pstools suite from Microsoft, the one I particularly wanted was psexec.

I then wrote the following Python Script to do the inventory updates:

 

## import necessary modules
import thread
import os
import sys

## Set locations to runkbot.exe and kdeploy.exe

runkbot = r'"C:\Program Files\Dell\KACE\runkbot.exe"'
kdeploy = r'"C:\Program Files\Dell\KACE\KDeploy.exe"'

## Define function to process the Inventory Update for individual machines and

##deploy any waiting managed installs

def InvUpdate(id):
os.system('psexec.exe \\\\%s ' %id + runkbot + ' -s 4 0')
os.system('psexec.exe \\\\%s ' %id + kdeploy + ' -mi')


## create a list of machines you want to force an inventory update on
class = ['machine1', 'machine2', 'machine3']

 

## Forces inventory update by creating multiple threads for machines in the 'class' group
for machines in class:
   thread.start_new_thread(InvUpdate, (machines,))

This goes off and runs "C:\Program Files\Dell\KACE\runkbot.exe -s 4 0" on all machines listed under "class"

The script is pretty quick and rough, but it does the job.

Let me know what you think, and feel free to give it a go and see if it works for you

~Cheers,

 

Christian Dow

System Administrator

Wanganui Park Secondary College


Comments

  • I use the k1000 admin screen, less work. Go to Inventory - Computers and in the search put the first part of the rooms machines name (for example EDS-102, the machines are names EDS-102-01,...) Then under the "choose action" dropdown pick "Force Update of Selected Item(s)" - SMal.tmcc 11 years ago
  • Is this in the new update? I don't have this item in the "choose action" dropdown menu. - Daedalus 11 years ago
    • we are running 5.4 - SMal.tmcc 11 years ago
      • Ah, we haven't updated to 5.4 yet. Thanks! - Daedalus 11 years ago
This post is locked

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ