温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

Exchange 命令行管理

发布时间:2020-06-28 08:14:22 阅读:1397 作者:haitao0228 栏目:建站服务器
开发者测试专用服务器限时活动,0元免费领,库存有限,领完即止! 点击查看>>

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-MailboxDatabaseProhibitSendQuota 5GB 
            Get-MailboxDatabase DB1 | New-MoveRequestTargetDatabase DB2
            Get-RemoteDomain | ForEach-Object {New-SendConnectorInternetName $($_.Name) – AddressSpaces $($_.DomainName)} 
            Note 
            Get-MailboxDatabaseCopyStatusServer LON-EX1 | ? {$_.Status –eq ‘Mounted’} | MoveActiveMailboxDatabaseActivateOnServer LON-EX2 
            Get-OwaVirtualDirectory | Set-OwaVirtualDirectoryExternalUrl https://mail.adatum.com/owa
    常用测试命令

监控命令示范
        Get-MailboxDatabaseCopyStatus * 
        Get-MailboxDatabaseCopyStatusServer LON-EX1 -Active
        Get-EventLogLogName ApplicationSourceMSExchange Common” –EntryType ErrorNewest 10
        Get-EventLogLogName ApplicationSourceMSExchange Common” –EntryType ErrorNewest 10Computer LON-EX1, LON-EX2

Exchange 命令行管理

亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI

开发者交流群×