Skip to content

Instantly share code, notes, and snippets.

@homebysix
Created November 30, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save homebysix/03fad0aa57a7f7bc48a4345fdf57b33f to your computer and use it in GitHub Desktop.
Save homebysix/03fad0aa57a7f7bc48a4345fdf57b33f to your computer and use it in GitHub Desktop.
list_computer_groups.py
#!/usr/bin/python
import jss
# Connect to the JSS. (Requires python-jss to be configured.)
jss_prefs = jss.JSSPrefs()
j = jss.JSS(jss_prefs)
# Print computer groups.
print j.ComputerGroup()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment