In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
E-mail records-
Get-TransportServer | Get-MessageTrackingLog-Sender:chengcheng1.tan@sk.com-EventId send-Start "2017-08-07 08:38"-End "2017-08-07 08:45" | Select-Object Timestamp,ClientIp,ClientHostname,ServerIp,ServerHostname,connectorid,Source,EventId, {$.RecipientStatus}, TotalBytes,RecipientCount,MessageSubject,Sender | Export-Csv-Path d:\ exlog_sender_2017011301.csv-Encoding Unicode-NoTypeInformation
E-mail records-
Get-TransportServer | Get-MessageTrackingLog-Recipients:yanyan.wang@sk.com-EventId send-Start 2016-12-01 | Select-Object Timestamp,ClientIp,ClientHostname,ServerIp,ServerHostname,connectorid,Source,EventId, {$.RecipientStatus}, TotalBytes,RecipientCount,MessageSubject,Sender | Export-Csv-Path d:\ exlog_recipients_2017011301.csv-Encoding Unicode-NoTypeInformation
Get-Mailbox-Identity "590031i" | Ft Alias, Database
ExChange Shell API document
Https://docs.microsoft.com/en-us/powershell/module/exchange/mailbox-databases-and-servers/get-mailboxdatabase?view=exchange-ps
View the name and version information of the server cluster
Get-ExchangeServer | Ft Name, ServerRole, Edition, AdminDisplayVersion-auto
Get DB list and server information
Get-MailboxDatabase | Format-List
Query the server information where the MBX03_New DB resides
Get-MailboxDatabase-Identity MBX03_New | Format-List
Check the size and DB of a user's mailbox
Get-Mailbox-Identity 590031I@sk.com | Get-MailboxStatistics | select DisplayName,TotalItemSize,Database
Query queue usage
Get-Queue
View mailbox usage capacity
Get-mailboxstatistics-identity 590031i | format-list
Get-mailboxstatistics-identity 590031i | ft displayname,totalitemsize,lastlogontime
View ExchangeServer version
Get-exchangeserver | format-list name,edition,admindisplayversion
Delete the content of a user's email within a certain period of time
Search-Mailbox-Identity "shilian.wu@sk.com"-SearchQuery "Received:01/01/2017..07/20/2017"-DeleteContent
1. Delete specific user-specific messages by message subject:
The following example is to delete an email whose subject contains the 'Product Discussion' keyword' in the user's sky.
Search-Mailbox-Identity "sky"-SearchQuery "Subject:'Product Discussion'"-DeleteContent
2. Delete a specific user-specific email according to the sender's address:
The following example is to delete an email whose sender is' sharepoint@pugster.com''in the user sky. Br/ >
The following example is to delete an email whose sender is' sharepoint@pugster.com''in the user sky.
Search-Mailbox-Identity "sky"-SearchQuery "From:'sharepoint@pugster.com'"-DeleteContent
Delete messages from a mailbox for a certain period of time
Search-Mailbox-Identity "sky"-SearchQuery "From:'sharepoint@pugster.com' and Received:01/01/2001..11/01/2011"-DeleteContent
Delete specific user-specific messages by content keyword:
The following example is to delete an email that contains Modify my alert settings in the user's sky. (since the replacement of the sender in sharepoint is only the last month, previous sharepoint emails need to be screened more carefully. )
Search-Mailbox-Identity "sky"-SearchQuery "body:'Modify my alert settings'"-DeleteContent
"from" ("jie.feng@sk.com").
-Get-Mailbox-Resultsize Unlimited | Search-Mailbox-SearchQuery 'from: "jie.feng@sk.com"-DeleteContent
1. User query before e-mail deletion
Get-Mailbox-ResultSize unlimited | Search-Mailbox-SearchQuery 'Subject: "resignation speech"'-EstimateResultOnly | Measure-Object
two。 Delete a message.
Get-Mailbox-ResultSize unlimited | Search-Mailbox-SearchQuery 'Subject: "resignation speech"'-DeleteContent
3. Please query the user after deletion
Get-Mailbox-ResultSize unlimited | Search-Mailbox-SearchQuery 'Subject: "resignation speech"'-EstimateResultOnly | Measure-Object
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.