Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Remove WindowsEmailAddress?

86 views
Skip to first unread message

Karl Mitschke

unread,
Jan 16, 2008, 6:07:58 PM1/16/08
to
Hello;

I am running Exchange 2007, SP1, and I am trying to clear the WindowsEmailAddress
after (or even before) disabling a mailbox.

Disabling it seems to remove the PrimarySMTPAddress, but not the WindowsEmailAddress.

I DON'T want to delete the AD account, all I want to do is remove its WindowsEmailAddress.

I tried set-mailbox -identity "identity" -WindowsEmailAddress $null" which
fails as $null is not a valid smtp address.

I suppose I could do a call to Active Directory, but I'd prefer not to.

Does anyone have any ideas?

Karl


Shay Levi

unread,
Jan 17, 2008, 3:30:29 AM1/17/08
to
You can clear it with Quest's AD cmdlets:

Set-QADObject -Identity user -objectAttributes @{mail=""}

-----
Shay Levi
$cript Fanatic
http://scriptolog.blogspot.com

Karl Mitschke

unread,
Jan 17, 2008, 10:18:14 AM1/17/08
to
Hello Shay,

Shay;

I should have mentioned that we won't be installing the Quest AD cmdlets
on our Exchange servers, where my scripts run.

Looks like I will just do it with good old fashioned code.

Thanks

Karl


John Fullbright

unread,
Feb 9, 2008, 9:06:21 PM2/9/08
to
For a user object in ad, it's the mail attribute

in vbscript, something like

objUser.Put "mail", ""
objUser.setinfo

The "old fashioned way"

"Karl Mitschke" <kmit...@somestate.gov> wrote in message
news:7063857f245848...@msnews.microsoft.com...

Karl Mitschke

unread,
Feb 11, 2008, 11:20:36 AM2/11/08
to
Hello John,

Thanks, John;

As Garth (Wayne's World) would say, "Get with the now" ;)

No, seriously, I was going to do this wia calls to AD, but since we upgraded
to SP1 the mail attribute changes and deletes as expected (unless I DID code
this in my sleep, and forgot about it)

Karl


0 new messages