Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to delete SMTP address using cmdlet?

$
0
0

Hello,

I want to delete the address which I got after executing the following command -

Get-AdUser msft -properties proxyaddresses | %{$_.proxyaddresses}|?{$_ -cmatch 'SMTP:'}

For e.g. - For user/mailbox MSFT, the above command give output -

SMTP:msft@microsoft.com

Graphically I can delete it from ADSI --> CN=Users --> CN=MSFT - Properties --proxyAddresses.

I need to delete using cmdlet.

Please guide me.


Thanks, Divyaprakash Koli


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>