scripting in the active directory

From: Fernando (fernando_at_microsoft.com)
Date: 03/01/05


Date: Tue, 1 Mar 2005 11:29:57 -0000

Hello there,

Does someone knows any script to add a new email account to all the users in
the active directory?

Scenario
---------

Around 500 users in the active directory with an smtp email address created
in the following way: name.sirname@potepille.co.uk. In June our domain
changes so I need to start changing all the users emails addresses.

What is needed
----------------

I need to add another smtp email address which keeps the name and sirname,
but modifies the domain: name.sirname@pote.co.uk

I just want to add a new email address without deleting or modifying the one
which already exist, but I will like this new address to become the defualt
email address.

Bonus if achieved
------------------

A script which deletes the old email address from every user, but leaves the
new email address.

I am really new in scripting, but I am slowly getting there. If someone
could help me out or refer me somewhere will be very much appreciated.

Kind regards,

Fernando.



Relevant Pages

  • script and email accounts
    ... Scenario ... Around 500 users in the active directory with an smtp email address created ... A script which deletes the old email address from every user, ...
    (microsoft.public.windows.server.active_directory)
  • scripting in the active directory
    ... Scenario ... Around 500 users in the active directory with an smtp email address created ... A script which deletes the old email address from every user, ...
    (microsoft.public.scripting.vbscript)
  • Re: Need assistance badly!
    ... I have tried cobbling together a script that does this, ... I would use ADO in a VBScript program to retrieve all users with the ... Dim objRootDSE, strDNSDomain, strQuery, adoRecordset, strName, strCN ... adoConnection.Open "Active Directory Provider" ...
    (microsoft.public.scripting.vbscript)
  • Re: Another Newbie
    ... I need a script that will give me a list of all users who's ... ' Use ADO to search Active Directory. ... Set adoConnection = CreateObject ... ' Filter on user objects that have password never expires flag set. ...
    (microsoft.public.windows.server.scripting)
  • Re: Operations Masters
    ... Run diagnostics against your Active Directory domain. ... Run dcdiag, netdiag and repadmin in verbose mode. ... If you download a gui script I wrote it should be simple to set and run ...
    (microsoft.public.windows.server.active_directory)