Automating client subscriptions to sites

(imported topic written by TimRozycki91)

We want to limit the fixlet / task load on our clients by having the clients subscribe to appropriate sites that contain only selected fixlets and / or tasks. This is nothing groundbreaking, however we have too many clients to manage this, on an initial basis, much less as an ongoing administrative task. What we would like to set up would be a master site that all clients would subscribe to. This site would determine, based on the properties of the client, which sites the client should subscribe to and then set those subscriptions. After that all we have to do is make sure any new fixlet or task gets assigned to the proper site. Has anyone had any experience in setting subscriptions outside of the console?

(imported comment written by SystemAdmin)

Carefully define your site criteria in the relevance to a new task. Then use the following action script to set the site. If you run your task as a policy action (unending), then any new machine that comes onto your network and meets the criteria will automatically join the appropriate site.

custom site subscribe CustomSite_ as “” on “{now}”

Note: If your custom site name contains space(s), then it would look like:

custom site subscribe CustomSite__<second word of site, etc.> as “%20<second word of site, etc.>” on “{now}”

Note: {now} can be replaced with a time of your choosing if you like such as the time of the action or any other time that makes sense.