Off-topic Scripting Question

jstrauss
Contributor

First, sorry for the off-topic post.

Is there a way to script the Login Option in the Accounts pane in System Preferences to "Allow network users to log in at login window" and set it to "Only these network users:" followed by a network user or two? I can't do this via WGM for several reasons, and instead of creating a new base image with that option, I'd prefer to throw a script in the configuration, if it's possible.

Any help is appreciated.

Thanks,

Jeffrey A. Strauss
Systems Administrator
Department of Educational Technology
Loyola High School of Los Angeles
1901 Venice Boulevard
Los Angeles, Ca 90006
213.381.5121 x. 265

2 REPLIES 2

jarednichols
Honored Contributor

You can script dscl commands. The com.apple.loginwindow.netaccounts group is what you want to edit group membership of.

j
--
Jared F. Nichols
Desktop Engineer, Client Services
Information Services Department
MIT Lincoln Laboratory
244 Wood Street
Lexington, Massachusetts 02420
781.981.5436

jstrauss
Contributor

Thanks.

Jeffrey A. Strauss
Systems Administrator
Department of Educational Technology
Loyola High School of Los Angeles
1901 Venice Boulevard
Los Angeles, Ca 90006
213.381.5121 x. 265