十年網(wǎng)站開發(fā)經(jīng)驗 + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊
量身定制 + 運營維護(hù)+專業(yè)推廣+無憂售后,網(wǎng)站問題一站解決
Powershell管理Exchange
管理Exchange:安裝Exchange的管理工具
遠(yuǎn)程管理本地Exchange服務(wù)器:必須在管理計算機(jī)中安裝Exchange 管理工具
? 當(dāng)前計算機(jī)在域環(huán)境中,并且使用域用戶登陸(推薦)
? Import-Module "C:\Program Files\Microsoft\Exchange Server\V15\bin\RemoteExchange.ps1"
? Connect-ExchangeServer -Auto -ClientApplication:managementshell
? 當(dāng)前計算機(jī)工作組狀態(tài)
? 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
常用命令
對象管理
網(wǎng)站建設(shè)哪家好,找成都創(chuàng)新互聯(lián)!專注于網(wǎng)頁設(shè)計、網(wǎng)站建設(shè)、微信開發(fā)、小程序開發(fā)、集團(tuán)企業(yè)網(wǎng)站建設(shè)等服務(wù)項目。為回饋新老客戶創(chuàng)新互聯(lián)還提供了金寨免費建站歡迎大家使用!
服務(wù)器管理命令
示范
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
常用測試命令
監(jiān)控命令示范
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