码迷,mamicode.com
首页 > 其他好文 > 详细

导出Exchange 2007/2010设置

时间:2018-10-14 23:11:56      阅读:197      评论:0      收藏:0      [点我收藏+]

标签:com   tab   domain   eset   cto   hang   where   data   ted   

从Exchange Server 2007&2010迁移到Exchange 2013时,最好保留旧服务器的设置。可以使用以下脚本将设置导出到文本:

md C:\ExchangeSettings

$Commands = gcm get*virtual*
$Commands += "Get-ReceiveConnector","Get-SendConnector","Get-ClientAccessServer","Get-OfflineAddressBook" `
,"Get-MailboxDatabase","Get-OutlookAnywhere","Get-AcceptedDomain","Get-SendConnector","Get-ReceiveConnector" | % {gcm $_}

$Commands | % {

$command = "Write-Host $_; $_ | fl "

Invoke-Expression $command | Out-File C:\ExchangeSettings\$_.txt

}

导出Exchange 2007/2010设置

标签:com   tab   domain   eset   cto   hang   where   data   ted   

原文地址:http://blog.51cto.com/3032439/2299842

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!