I've created a new Site where a bunch of Macs and their associated policies will be moved... I know how to bulk move the Macs into the new site, but it doesn't look like there's a way to do the same with policies. Will I have to move them one by one or is there a way to do it in bulk (perhaps through the API)?
Any way to bulk move policies to a site?
Best answer by mm2270
Hmm. It may be possible to recreate the policies using the API, but its outside of the realm of things I've personally attempted, so not so sure.
I don't know if there's any batch related functions around moving things from one site to another. I don't think so.
Actually, in thinking about it, it might be possible to simply change the site information for each policy, but, as I do not use Sites at all, I don't have a good reference to test with. For example, every policy has a section in its xml that looks like this:
<site>
<id>-1</id>
<name>None</name>
</site>
The -1 and corresponding None indicates its not in any Site (global policy), but I'm wondering if simply changing that one value in the JSS (and the name string?) would be enough to move the policy into the Site designated by the ID and name? Anyone know for sure on that?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
