随笔分类 -  Exchange

摘要:添加白名单 Set-MailboxJunkEmailConfiguration "<内部人员邮箱地址>" -TrustedSendersAndDomains @{Add="contoso.com"} 示例添加受信任域,让si.li收到contoso.com这个域的邮件,也可以单独定义外域的个人邮件S 阅读全文
posted @ 2022-01-06 14:15 Dnake668 阅读(99) 评论(0) 推荐(0)
摘要:Import-Csv -Path C:\Desktop\mailuser\box.csv dsquery user -samid $_.name | New-MoveRequest –Identity $_.name -TargetDatabase 'DB16' 阅读全文
posted @ 2021-12-14 13:55 Dnake668 阅读(286) 评论(0) 推荐(0)
摘要:Get-InboxRule -Mailbox lisi 阅读全文
posted @ 2021-12-14 13:52 Dnake668 阅读(45) 评论(0) 推荐(0)
摘要:Get-TransportRule |fl SamAccountName,name,description >> C:\mailRule.csv 阅读全文
posted @ 2021-12-14 13:52 Dnake668 阅读(74) 评论(0) 推荐(0)
摘要:"Get-Mailbox -server dag2 –ResultSize unlimited | Group-Object –Property:Alias | Group-Object –Property:Count | Select Count" 阅读全文
posted @ 2021-12-14 13:51 Dnake668 阅读(43) 评论(0) 推荐(0)
摘要:批量迁移用户到数据库,user.txt表中,只包含用户名一列 Get-Content c:\user.txt | Get-mailbox | new-moveRequest -TargetDatabase 数据库名 阅读全文
posted @ 2021-12-14 13:47 Dnake668 阅读(157) 评论(0) 推荐(0)
摘要:Get-Mailbox -ResultSize Unlimited| Get-Mailboxstatistics | where-object {$_.LastLogonTime -lt (get-date).AddDays(-30)} |select DisplayName,TotalItemSi 阅读全文
posted @ 2021-12-14 13:45 Dnake668 阅读(167) 评论(0) 推荐(0)