Link to home
Start Free TrialLog in
Avatar of Ace_Crosley_79
Ace_Crosley_79

asked on

Removal of email address (company wide) with .nk2 or whatever Outlook 2010 uses

Hello,

We recently changed an email address from a Security Group to a full mailbox. Users who have used the address in the past are now receiving bounce back mail, we have been delete the nickname email one by one as and when however to do this for all users will be hard.

Does anyone know of a was we could include the removal of the address in Group policy or in a .vbs file etc etc... any ideas??

Hosted Exchange 2007, Outlook 2007/10 full MS Server 2008 in all other regards.

Ace
ASKER CERTIFIED SOLUTION
Avatar of GundogTrainer
GundogTrainer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GundogTrainer
GundogTrainer

(My spelling is terrible today)
Forgot to say that once you have done this - if you go back to the old message and double click the address it should display the detials now for the new distribution list.
Avatar of Spike99
Unfortunately, I believe that email address would be cached for each user in their NK2 file.  I think GundogTrainer's solution would probably work because that would add that address to exchange.

But, in answer to your question about a logon script:

I don't think there's any way you can remove just one address from the NK2 file for each user, but you could create a logon script to rename or delete that file with a logon script.

To use my system as an example, I have Office 2010 installed on Win7 Enterprise x64 and my NK2 file is in this path:
C:\Users\alicia\AppData\Roaming\Microsoft\Outlook

To rename it in a batch file:
ren c:\users\%username%\AppData\Roaming\Microsoft\Outlook\*.NK2 *.old

Or, delete it:
del c:\users\%username%\AppData\Roaming\Microsoft\Outlook\*.NK2

For XP systems, I believe the path to the NK2 file would be:
C:\Documents and Settings\%username%\AppData\Microsoft\Outlook for WinXP systems.

If the name of the local profile folder doesn't match the actual user's name, you could substitute the variable %userprofile% to catch those.  For example, that would work if the user name shows up something like this:

C:\Documents and Settings\USER.DOMAIN.000

The drawback of renaming or deleting the file for all users is that some people are very much attached to the email addresses that are cached in that file.  We had issues with the NK2 files saved to users' personal folders during a recent domain migration. All the cached email addresses for their coworkers were invalid once the migration was complete and using that X500 option described by GundogTrainer would not work for us since this those old email address/AD accounts were in a different domain.

So, we created a script to just rename the NK2 file.  That way, when some people complained about losing their external "contacts list," we changed the name back & showed them how to remove the old addresses of their coworkers and add the new ones.

I hope this helps.

Alicia
Avatar of Ace_Crosley_79

ASKER

Great idea why didn't I think of it! ty