标签:proc path test object name excel pst -o new
批量导出
Import-Csv -Path c:\user.csv | foreach-object -process {New-MailboxExportRequest -Mailbox $_.name -FilePath "\\serverip\test\$_.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
标签:proc path test object name excel pst -o new
原文地址:https://www.cnblogs.com/victor0/p/13276989.html