Jump to content

LDAP script to block exchange address lists


Recommended Posts

Posted

Can anyone help?

 

When we set up student emails, we direct them to an address list called “None”, so that they cannot access the global address list, and other staff and student address lists within Exchange. At the moment I do this manually within ADSIedit.msc but I need to do this to 240 students! So I need an LDAP script to edit active directory within Exchange.

 

I'm pretty much next to useless at scripting, and definitely know nothing about LDAP scripting.. does anyone have one they can share at all?

 

The distinguished name to our address list is: CN=None,CN=All Address Lists,CN=Address Lists Container,CN=Sawstonvc,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=sawstonvc,DC=local

This dn then needs to be copied into the attribute msExchQueryBaseDN of every pupil.

I have a list of each pupil which I could add/amend to the script after, but the distinguished name to the year 7 students are : CN=xxxx,OU=10,OU=Pupils,OU=Domain Users,DC=sawstonvc,DC=local

 

Thanks

Jenny

Posted

This isn't working :( randomly it's not changing the entries on the "10" OU, its running in the "06" OU and then there's big red errors on each one complaining about commit changes. If anyone can help let me know I can post the script and errors.

 

Thanks

J

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...