Address Book write LDAP server command via terminal or remote desktop

Hi folks.
I was wondering if anyone has had any experience issuing an 'address book' setting command, to ADD an LDAP entry, via terminal or remote desktop?
In particular, I want to "ADD" a new "LDAP" entry for a specific server, on 40 workstations, using terminal or remote desktop, so that I don't have to leave my desk
I recall that you can issue commands from the terminal, starting with "write"... to add such preferences.
Any thoughts, ideas, or inspiration?
Many thanks,


As far as I know, We couldn't use Command Shell as you list to establish a Remote Desktop. You can use
mstsc /? command to view all mstsc.exe command parameter. We can use the command
mstsc [<connection file>] to establish a Remote Desktop Connection.
However, why did you want use command shell to establish a Remote Desktop? It would be more convenient using
mstsc [<connection file>] command to establish a Remote Desktop.
If you need further assistance on this particular issue or any other Windows related issue, let us know and we will be glad to assist you.
Roger Lu
TechNet Community Support