/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


How to keep scripts deployed and run on a new machine automatically?

02/20/2015 1210 views
I'm able to have a dynamic collection with SCCM and keep a deployment going indefinitely. Do the scripts keep running if they do not have a schedule set. I just want the script to run when a new workstation appears to Kace or falls into a label.
0 Comments   [ + ] Show comments

Comments


All Answers

0
Create a label which is called "new machines" or similar, which checks how long the machine is part of the inventory.

I use this one:
select MACHINE.*, C.CLIENT_CONNECTED, UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(LAST_SYNC) as LAST_SYNC_TIME,
UNIX_TIMESTAMP(LAST_SYNC) as LAST_SYNC_SECONDS
from ORG1.MACHINE
LEFT JOIN KBSYS.KUID_ORGANIZATION O ON O.KUID=MACHINE.KUID LEFT JOIN KBSYS.SMMP_CONNECTION C ON C.KUID = MACHINE.KUID AND O.ORGANIZATION_ID = 1
where DATE(CREATED) BETWEEN DATE_SUB(CURDATE(), INTERVAL 10 Day) AND CURDATE()

I bound all scripts which need to run on the new systems (power settings etc), managed installs for basic software installs and a high frequency patch run on this label, so the new machines have the most current software installations, current patch label and all settings which need to be made by scripts, are provided to these systems in a short time period.
As soon they grew "older" they leave the label and the scripts etc don't run anymore to these systems.
I chose 10 day because a few of my test systems are on remote locations and are not always avaiable. 
Answered 02/21/2015 by: Nico_K
Red Belt

Don't be a Stranger!

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

Sign up! or login

View more:

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