Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > VB Script

Vista - ADSI scripting "risks"

Reply
 
Old 11-07-2008   #1 (permalink)
Al Dunbar


 
 

ADSI scripting "risks"

A colleague has developed a script to add a second SMTP address to all of
our mailboxes in first.last@xxxxxx format, in order to satisfy a new
regulatory requirement for our organization. She is a competent and cautious
scripter, and I have reviewed some of her code and found it well crafted.

Before implementation we got into a discussion with someone from the group
that looks after our AD infrastructure. He is even more cautious, and wants
us to modify the script to apply the changes to smaller chunks of accounts,
evaluate the results to see if it has caused any "problems" for AD. We have
about 20,000 accounts scattered over perhaps 80 OU's, and he is suggesting
doing no more than about 200 at a time.

We have no problem doing this, however, when we asked what kind of
"problems" we should be looking for, he had no idea. And no idea how to go
about looking for those unknown problems. His concern is that if the script
goes completely haywire, it might cause operational issues for our exchange
infrastructure.

The obvious risks associated with our script would seem to include such
things as creating duplicate addresses, creating addresses with special
characters, creating illegal addresses, and somehow disabling the current
username@xxxxxx addresses.

The question I want to ask here is this: are there any other potential
issues that could result from running a script that modifies all accounts in
this manner? For example, bulk changes would certainly result in additional
replication traffic (we have as many as 200 DC's in perhaps 80 AD sites all
connected by a fairly robust WAN infrastructure). Are there any best
practices or guidelines that would allow us to predict the impact of this?
If not, are there any techniques for measuring the impact during or after
implementation?

I have used LDIFDE to update various attributes on the approximately 350
accounts in my OU, and, after testing one or two first, I usually just let
it run and have never seen any problems.

Beyond possible replication issues and logical errors in the script, are
there any other factors that would suggest that breaking a bulk modification
down into chunks would be a prudent thing to do?

Any comments will be greatly appreciated.

/Al



My System SpecsSystem Spec
Old 11-09-2008   #2 (permalink)
Wiseman82


 
 

Re: ADSI scripting "risks"

It's always good to be a little paranoid. Bulk updates do have an element
of risk and you should exercise caution when making large updates to the
directory service.

You've already anticipated the increase in replication traffic - I'm not
sure exactly how you would go about predicting the impact of this on your
network though. Updating in smaller batches as suggested would minimize the
impact on replication - you might also consider performing the update during
a period of low network activity.

It's always a good idea to test bulk updates in a QA environment first. You
might also choose a smaller sample of users to update in your live
environment before applying the update to all users.

Testing is always a good idea, but sometimes problems come up that haven't
been anticipated. It's always prudent to have a recovery plan. Make sure
you are familiar with recovery techniques and have a recent backup of your
directory before performing the update.

Hope this helps,

David,
http://www.wisesoft.co.uk
(My personal website and a free resource for IT Professionals)


"Al Dunbar" <alandrub@xxxxxx> wrote in message
news:OzHGDvNQJHA.1164@xxxxxx
Quote:

>A colleague has developed a script to add a second SMTP address to all of
>our mailboxes in first.last@xxxxxx format, in order to satisfy a new
>regulatory requirement for our organization. She is a competent and
>cautious scripter, and I have reviewed some of her code and found it well
>crafted.
>
> Before implementation we got into a discussion with someone from the group
> that looks after our AD infrastructure. He is even more cautious, and
> wants us to modify the script to apply the changes to smaller chunks of
> accounts, evaluate the results to see if it has caused any "problems" for
> AD. We have about 20,000 accounts scattered over perhaps 80 OU's, and he
> is suggesting doing no more than about 200 at a time.
>
> We have no problem doing this, however, when we asked what kind of
> "problems" we should be looking for, he had no idea. And no idea how to go
> about looking for those unknown problems. His concern is that if the
> script goes completely haywire, it might cause operational issues for our
> exchange infrastructure.
>
> The obvious risks associated with our script would seem to include such
> things as creating duplicate addresses, creating addresses with special
> characters, creating illegal addresses, and somehow disabling the current
> username@xxxxxx addresses.
>
> The question I want to ask here is this: are there any other potential
> issues that could result from running a script that modifies all accounts
> in this manner? For example, bulk changes would certainly result in
> additional replication traffic (we have as many as 200 DC's in perhaps 80
> AD sites all connected by a fairly robust WAN infrastructure). Are there
> any best practices or guidelines that would allow us to predict the impact
> of this? If not, are there any techniques for measuring the impact during
> or after implementation?
>
> I have used LDIFDE to update various attributes on the approximately 350
> accounts in my OU, and, after testing one or two first, I usually just let
> it run and have never seen any problems.
>
> Beyond possible replication issues and logical errors in the script, are
> there any other factors that would suggest that breaking a bulk
> modification down into chunks would be a prudent thing to do?
>
> Any comments will be greatly appreciated.
>
> /Al
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Unwanted Multiple contacts in "To","CC","BCC" of email send catago Vista mail
Vista not wotking with "My Computer" or "Control Panel", "Screen Saver" Vista General
How can I add the icons "Delete", "Cut", "Copy" and "Paste" in Vis Vista file management
interested in a "Powershell Scripting for the System Administrator" book? PowerShell
WM5 Sync with Vista "Windows Calender", "Contacts", and "Mail" Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46