Specifications

Chapter 8 Managing User and Group Accounts 121
The following command causes the autohide Dock key to no longer be managed:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcxdelete . com.apple.dock autohide
The following command exports the keys in the com.apple.dock domain for the
current record to the /tmp/export.plist file:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcxexport . -o /tmp/export.plist
com.apple.dock
The following command imports the keys in the /tmp/export.plist file into the current
directory:
$ dscl
> cd /LDAPv3/127.0.0.1/Users/sam
/LDAPv3/127.0.0.1/Users/sam > mcximport . /tmp/export.plist
For more examples, use the mcxhelp extension.
Determining Effective Managed Preferences
Workgroup Manager allows you to configure managed preferences at the user,
workgroup, and computer level. Determining the effective managed preferences that
determine a user’s computer experience is not easy, especially if the managed user is a
member of many managed workgroups, and each workgroup is a member of a
different computer group.
To simplify the process of determining effective managed preferences, Mac OS X Server
provides the mcxquery command. You can use this command to determine the effective
managed preferences for user, workgroup, or computer group records.
Syntax
$ mcxquery
options
-user
userName
-group
groupName
-computer
computerName
Parameter Description
options
(Optional) Two options for specifying the name and format of the file where the
results of the query (the effective managed preferences) are stored:
Â
-o fileName: The name of the output file (including the path) where the results
of running this command are stored.
Â
-format {space | tab | xml}: The format of the output, which can be
space-delimited, tab-delimited, or XML.
userName
(Optional) The short name of a user. If you do not provide the short name for this
option or use the equal sign (
=), this command uses the short name of the logged
in console user.