135-1821-9792

Exchange命令行管理

Powershell管理Exchange
管理Exchange:安装Exchange的管理工具
远程管理本地Exchange服务器:必须在管理计算机中安装Exchange 管理工具
◊ 当前计算机在域环境中,并且使用域用户登陆(推荐)
◊ Import-Module "C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1"
◊ Connect-ExchangeServer -Auto -ClientApplication:managementshell
◊ 当前计算机工作组状态
◊ Import-Module "C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1"
◊ Connect-ExchangeServer -Auto -ClientApplication:managementshell
◊ $exchcred = Get-Credential
◊ $exchsession = New-PSSession -ConfigurationName Microsoft.exchange -ConnectionUri "https://lon-ex1.adatum.com/Powershell/" -Authentication Kerberos -Credential $exchcred
◊ Import-PSSession $exchsession
Exchange Online 管理
https://support.office.com/zh-cn/article/%e5%b0%86-powershell-%e8%bf%9e%e6%8e%a5%e5%88%b0-office-365-%e6%9c%8d%e5%8a%a1-06a743bb-ceb6-49a9-a61d-db4ffdf54fa6?ui=zh-CN&rs=zh-CN&ad=CN
常用命令
对象管理

网站建设哪家好,找成都创新互联!专注于网页设计、网站建设、微信开发、小程序开发、集团企业网站建设等服务项目。为回馈新老客户创新互联还提供了金寨免费建站欢迎大家使用!

    服务器管理命令

    示范
            Get-MailboxDatabase | Set-MailboxDatabase –ProhibitSendQuota 5GB 
            Get-Mailbox –Database DB1 | New-MoveRequest –TargetDatabase DB2
            Get-RemoteDomain | ForEach-Object {New-SendConnector –Internet –Name $($_.Name) – AddressSpaces $($_.DomainName)} 
            Note 
            Get-MailboxDatabaseCopyStatus –Server LON-EX1 | ? {$_.Status –eq ‘Mounted’} | MoveActiveMailboxDatabase –ActivateOnServer LON-EX2 
            Get-OwaVirtualDirectory | Set-OwaVirtualDirectory –ExternalUrl https://mail.adatum.com/owa
    常用测试命令

监控命令示范
        Get-MailboxDatabaseCopyStatus * 
        Get-MailboxDatabaseCopyStatus –Server LON-EX1 -Active
        Get-EventLog –LogName Application –Source “MSExchange Common” –EntryType Error –Newest 10
        Get-EventLog –LogName Application –Source “MSExchange Common” –EntryType Error –Newest 10 –Computer LON-EX1, LON-EX2

Exchange 命令行管理


文章标题:Exchange命令行管理
标题网址:http://kswsj.com/article/poegps.html

其他资讯



Copyright © 2009-2022 www.kswsj.com 成都快上网科技有限公司 版权所有 蜀ICP备19037934号