Skip to main content
Question

Get (via script ) all the policies installed to a computer

  • October 7, 2015
  • 1 reply
  • 0 views

Forum|alt.badge.img+4

Hi guys , i would like to know if there is any command or script (JSS API ) with which i can get all the policies are installed in a computer automatically .

Thanks in advance .

1 reply

davidacland
Forum|alt.badge.img+18
  • Valued Contributor
  • 1811 replies
  • October 7, 2015

I've just had a quick look. There's a section in the computer record for <computer_group_memberships> and the policies have a <scope> section listing what groups are in scope.

So you would need to use a script to:

  • Read the groups the computer is a member of
  • Read each of the policies to see if the computer name or group names are in the scope

I can't find a policy log option for the API unfortunately.

If its only a case by case basis could you just use the management tab on a computer record in the JSS web interface.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings