Created
April 4, 2018 05:55
-
-
Save calum-github/a45ff8899976ff3170bf9fe6545055b9 to your computer and use it in GitHub Desktop.
System Profiler data
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
# Option 1 | |
# Get the data from the ManagedClient section of the System Profiler | |
system_profiler SPManagedClientDataType | |
# Additional - you can also provide the -xml flag to get the output in xml | |
system_profiler -xml SPManagedClientDataType | |
# Option 2 | |
# use mcxquery | |
mcxquery | |
# mcxquery: Determines the effective managed preferences for a given set of | |
user, group and computer record(s). | |
usage: mcxquery [options] [-user recName] [-group recName] [-computer recName] | |
options: | |
-o <path> | |
Redirect output to the file path specified | |
-format <space | tab | xml> | |
'tab' or 'space' produce a columnar report. | |
'xml' produces a XML report. | |
-computerOnly | |
Do not provide current values for -user or -group parameters. Useful | |
to determine computer-only settings such as those that would be used | |
when the login window is displayed. | |
-useCache | |
Return the cached computer settings in the local node if they are available. | |
-raw | |
Dumps Directory Service data for records contributing to managed preferences. | |
-forApple | |
Convenience for specifying options when sending bug reports to Apple. Currently enables '-raw' and '-format xml'. | |
Examples: | |
mcxquery -user mcxtest -group mcxgroup1 -computer guest | |
mcxquery -o /tmp/report.txt -format space -user mcxtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment