Last active
August 29, 2015 14:02
-
-
Save gregneagle/06c4d902771d9425c07b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
output = subprocess.check_output(['/usr/bin/profiles', '-C']) | |
for line in output.splitlines(): | |
(stuff, label, profile_identifier) = line.partition(' profileIdentifier: ') | |
if label and profile_identifer.startswith('com.apple.mdm.mdm.educ.psu.edu'): | |
print profile_identifier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment