Jump to content

Script Targeting

Recommended Posts


So I have a nice script that will remotely install the OpenDNS Advance agent against any device where it isn't install.  However, I only want it to install on mobile devices (i.e. laptops, tablets).

Can I add a function to check the IsPortable field in the Automate db into the script?  Or is there a better way to target the script for mobile devices?


Share this post

Link to post
Share on other sites

Lots of ways to do this.  You could do a SQL data check in the if/then condition of the script.  Or do a SQL query step if statement in the script steps.  Generally I try to do my filtering at the targeting level, so that the script doesn't even run against agents that don't do it - I figure that conserves resources and prevents a line of junk in their script logs, etc.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now