RSS

how to 01 使用Powershell快速添加exchange 邮箱的属性

19 Mar

1、添加一个邮件地址

$mailbox = Get-Mailbox xun
$mailbox.EmailAddresses +="cashcat@cashcat.com"
$mailbox | set-mailbox

2、白名单添加一个邮件域域名

$foo = Get-ContentFilterConfig
$foo.BypassedSenderDomains +="somedomain.com"
$foo | Set-ContentFilterConfig

 

想要减少仅需要将+变为-即可。

Advertisements
 
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: