Jump to content
SOrlando

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

The Computer Types search "Computers - Windows Laptop" could be used to build a Group, which could then only run your agent install script against members of that group. That'd probably be the easiest way.

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

×