Scenario: You are going to install the latest CU for Exchange, but you want to check the AD Schema levels to see if they need to be upgraded before the CU install Command Line: Using CMD line, run the following: (Everything in bold needs to be edited to reflect your Exchange organization OR your domain) […]
Create distribution list with no members. Emails sent to this DL will go into blackhole and won’t NDR. Exchange silently deletes them.
Use Netstat to select specific strings, in this case Ip address 192.168.1.5, port 993: netstat -ano | Select-String 192.168.1.5
Below are examples of checking the event viewer via PowerShell. Running local with event id and date range Get-WinEvent -FilterHashtable @{logname=’application’;id=4107;StartTime=”1/15/11″;EndTime=”1/17/11″} Running on remote computer with event ID Get-WinEvent -computername <remote computer> -FilterHashtable @{logname=’application’;id=15006}
Scenario: Import pst into a mailbox Note: Must have mailbox export/import permissions to be able to do this. targetrootfolder is good if you are importing multiple psts into the mailbox. This way content is not merged under existing folders. From Powershell, type: New-MailboxImportRequest -Mailbox newmbox -filepath \serverpstfilesnewmbox.pst-BadItemLimit 50 -T argetRootFolder “Mailbox -newmbox”
Perform IIS reset on multiple servers at once. Displays status after reset. #Specify servers in an array variable, Make sure you change the where statement. [array]$servers = get-exchangeserver | where {$_.identity -like “esg*” -and $_.AdminDisplayVersion -match “version 15.0*”} #Step through each server in the array and perform an IISRESET #Also show IIS service status after […]
Scenario: When you are trying to remove an Exchange Database, you receive the following error below. This mailbox database contains one or more mailboxes, mailbox plans, archive mailboxes, public folder mailboxes or arbitration mailboxes. To get a list of all mailboxes in this database, run the command Get-Mailbox -Database <Database ID>. To get a list […]
Scenario: When you attempt to run Get-MailboxDatabase -includePreExchange2013, you get the following error: The Exchange server for the database object ‘DB11’ wasn’t found in Active directory Domain Services. The object may be corrupted. You then discovered the mailbox server that used to host the database no longer exists in your organization and was forcibly removed via ADSIEdit. […]