批量导出
Import-Csv -Path c:user.csv | foreach-object -process {New-MailboxExportRequest -Mailbox $_.name -FilePath "\serverip est$_.name.pst"}
删除test用户邮箱数据;
Search-Mailbox -Identity Test -DeleteContent
批量删除用户邮箱数据
Import-Csv -Path c:user.csv | foreach-object -process {Search-Mailbox -Identity $_.name -DeleteContent -Force}
excel csv格式
name
user1
user2