Kolla MS patchar powershell.

Script för att kolla
https://gallery.technet.microsoft.com/scriptcenter/PowerShell-script-to-list-0955fe87

Get-MSHotfix|Where-Object {$_.Installedon -gt ((Get-Date).Adddays(-2))}|Select-Object -Property Computername, KBArticle,InstalledOn, HotFixID, InstalledBy|Format-Table

Get-MSHotfix|Where-Object {$_.HotfixID -match "KB2953522"}

Get-MSHotfix|Where-Object {$_.HotfixID -match "KB2953522"}|ForEach-Object {[System.Diagnostics.Process]::Start($_.KBArticle)}

EnterpriseVault MSMQ köer

Explanation of each queue
Enterprise Vault Exchange Mailbox task for server queue A1
Pending Items that are being updated. Sometimes referred to as post processing, where items are converted from pending to fully archived in user’s mailboxes.

Enterprise Vault Exchange Mailbox task for server queue A2
Individual items to process. Used for manual archive requests and whenever Enterprise
Vault cannot directly communicate with the Storage Archive queue of the Storage service.

Enterprise Vault Exchange Mailbox task for server queue A3
Used whenever a Run Now operation has been executed on the Archiving Task. Lists mailboxes to process.

Enterprise Vault Exchange Mailbox task for server queue A4
Individual items to process. Only used for retries when Enterprise Vault cannot directly
communicate with the Storage Archive queue of the Storage service.

Enterprise Vault Exchange Mailbox task for server queue A5
Mailboxes to process. Used during background archiving. This queue is not processed outside the
scheduled archiving times, so you cannot use Run Now to clear a backlog on this queue.

Enterprise Vault Exchange Mailbox task for server queue A6
Requests to update folders with items that have been moved inside a mailbox. In older versions of Enterprise Vault than version 8, this queue processed synchronization.

Enterprise Vault Exchange Mailbox task for server queue A7
Synchronization Requests. This queue was not included pre-EV8.

Enterprise Vault Exchange Mailbox task for server queue R1
Items to retrieve

Enterprise Vault Exchange Mailbox task for server queue R2
Items ready for retrieval.

Enterprise Vault Spool Queue
Items restored by the Storage service that are now ready to be processed by the Exchange Mailbox task (for retrieval).

Enterprise Vault Exchange Mailbox task for server queue J1
Shortcuts to update and failed operations.

Enterprise Vault Exchange Mailbox task for server queue J2
Items to process.

Enterprise Vault Exchange Mailbox task for server queue J3
Instructs the Exchange Journaling task to examine the journal mailbox for new messages. Up to 250 new messages will be marked as archive pending and a message is placed on queue j2 for each such message.

Enterprise Vault Storage Archive for Exchange Server
Messages to be stored in Vault Store. These messages are divided up into chunks.

Enterprise Vault Storage Restore for Exchange Server
Messages to be restored to Mailbox. These messages are also divided up into chunks.

Exchange länkar

Exchange 2013 SP1 SSL Offloading
http://jaapwesselius.com/2014/02/28/exchange-2013-sp1-ssl-offloading/
Hitta outlookregler med forward aktiverat
https://blogs.msdn.microsoft.com/canberrapfe/2012/11/05/ever-needed-to-find-server-side-outlook-rules-that-forward-mail-outside-of-your-organisation/
Lista Active-Sync enheter i Exchange
https://blogs.technet.microsoft.com/mspfe/2015/12/07/list-mobile-devices-in-exchange-2013/
Konfigurera TLS certifikat för Receive Connector
http://exchangeserverpro.com/configuring-the-tls-certificate-name-for-exchange-server-receive-connectors/
Transaktionsloggar växer om Outlook har felaktig antispampolicy
https://support.microsoft.com/en-us/kb/2714712
Script för att felsöka Active-Sync enheter
https://blogs.technet.microsoft.com/exchange/2012/01/31/a-script-to-troubleshoot-issues-with-exchange-activesync/
Hög CPU på Exchange när Http over RPC används
https://support.microsoft.com/en-us/kb/3041832

Lista antal Items och Mailboxstorlek Exchange

Get-Mailbox -database | Get-MailboxStatistics | Sort-Object ItemCount -descending |Select-Object DisplayName,ItemCount,@{name=”MailboxSize MB”;exp={$_.totalitemsize.value.ToMB()}} -first 10 | Convertto-Html | out-File c:\temp\report.htm

Återställa OOF Exchange

$enabled = get-mailbox -resultsize unlimited |get-mailboxautoreplyconfiguration | where {$_.autoreplystate -eq "enabled"} | select identity,autoreplystate

$enabled | foreach-object {
set-mailboxautoreplyconfiguration $_.identity -autoreplystate "Disabled"
set-mailboxautoreplyconfiguration $_.identity -autoreplystate "Enabled"
}

Lista storleken på användares utkorg Exchange 2013

Get-mailbox -ResultSize Unlimited| Get-MailboxFolderStatistics -folderscope Outbox | Sort-Object Foldersize -Descending | select-object identity,name,foldertype,itemsinfolder,@{Name=”FolderSize MB”;expression={$_.folderSize.toMB()}} | export-csv OutboxItems.csv

Hitta användare som genererar mest loggar Exchange 2013

Get-StoreUsageStatistics -Database | Sort-Object LogRecordBytes -desc | Select-Object -First 10 | ft DigestCategory,DisplayName, LogRecordBytes, *time* -auto

Ovanstående listar dom 10 användare som genererar mest loggar i databasen vid ett givet tillfälle.