The problem with the script is that I am not sure how to figure out the LDAP part.
I looked in AD and don't see anything.

The other thing is...is there an easy way to automatically deploy the dcom if the client doesn't already have it?