Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Exchange Command Line Management

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Powershell Management Exchange

Manage Exchange: install administrative tools for Exchange

Remote administration of local Exchange servers: Exchange management tools must be installed on the management computer

◊ is currently in a domain environment and is logged in using a domain user (recommended)

◊ Import-Module "C:\ Program Files\ Microsoft\ Exchange Server\ V15\ bin\ RemoteExchange.ps1"

◊ Connect-ExchangeServer-Auto-ClientApplication:managementshell

◊ current computer workgroup status

◊ 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 management

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

Common command

Object management

Server management command demonstration 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 |? {$_ .server-eq 'Mounted'} | MoveActiveMailboxDatabase-ActivateOnServer LON-EX2 Get-OwaVirtualDirectory | Set-OwaVirtualDirectory-ExternalUrl https://mail.adatum.com/owa Common Test Command Monitoring Command demonstration 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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report