Exchange Hybrid Configuration Steps Performed by the Hybrid Configuration Wizard
Here’s an extract of an article I made within my repositories (You can find the complete article Here) - it shows which changes is being made by the HCW. I made this from the log file generated by the HCW running on my Lab. My lab is comprised of 2 Exchange 2016 servers, E2016-01 and...
Exchange Vulnerability 02March2021 HAFNIUM targeting Exchange Servers with 0-day exploits
Important information regarding Exchange Server (2010, 2013, 2016, 2019) 0-day exploits Update: important note about MSERT scanner - download a new version each time you plan to scan your servers to get the latest signatures On Tuesday 2nd March 2021, Microsoft released patches for multiple different on-premises Microsoft Exchange Server zero-day vulnerabilities that are being...
Resume and complete mailbox migration for one mailbox inside a batch
When you have several move requests that were defined in a Batch, and you wish to complete just one of the batches, and not all the batches, you need to set individually the Move Request for that user with the -CompleteAfter parameter. Optionnally you can add the -SuspendWhenReady:$false as well as the -PreventCompletion:$false. These two...
Create an Archive for mailboxes on Exchange Server
To create an archive for all mailboxes, Get-Mailbox -Database DB01 -Filter "ArchiveGuid -Eq `$null -AND ArchiveDomain -eq `$null -AND Name -NotLike 'DiscoverySearchMailbox*'" | Enable-Mailbox -Archive Link to the full article: Exchange 2016/2019 In-Place archiving To create an archive for mailboxes, and set the archive to be hosted on a specific database that we could create...
List Exchange servers without Exchange Tools, just using [ADSI] and [ADSISEARCHER] PowerShell type accelerators
Finding Exchange servers and their properties in AD using [ADSI] and [ADSISearcher] type accelerators Overall Principle The principle is the following: Using a variable to connect to the AD forest’s Configuration partition $RootADConfigPartition = ([ADSI]'LDAP://RootDSE').ConfigurationNamingContext Using another variable, create the ADSISearcher base object $ADConnection = [ADSISearcher]"" which root is by default the current domain, will...
How to check AD Schema, Forest and Domain versions with PowerShell using [ADSI] type accelerator
The below is a script to demonstrate the use of the [ADSI] type accelerator to get some properties of AD components (Schema version, Exchange Forest version, Exchange domain version) to verify an Exchange deployment for example. # First we get the root domain of the local AD we run the script from: $RootDSE= ([ADSI]"").distinguishedName #Then...
Example searching AD using [ADSISEARCHER] PowerShell type accelerator
Raw notes about how to search in AD without loading AD module PowerShell has what we call “type accelerators”, which are like aliases to access some type of .NET objects and/or functions. To list the available accelerators on your system, you can use the below: [psobject].Assembly.GetType("System.Management.Automation.TypeAccelerators")::Get In this quick and dirty post we’ll use an...
Exporting Exchange On-Premises EWS properties
Exporting Exchange On-Premises EWS aka Exchange Web Services Configuration Properties First we store the output file path into a variable to use it twice #Storing file path name in a variable to use it twice: one in the Export-CSV, one to open it after populating it $OutFile = "c:\temp\WebServicesProps.txt" Then running Get-WebServices using all parameters,...
Enabling Kerberos On Exchange 2013 And 2016
Microsoft Documentation - Set Kerberos for Load Balanced Exchange 2016 Client Access Services Here I just prepped a quick Excel spreadsheet that show the sequence of commands to use when you setup an Exchange Alternate Service Account on Exchange 2013 or 2016. See the Downloads section for links to the Kerberos instructions Excel spreadsheet as...
Exchange Environment Information Collection Scripts
Exchange environment report script Exchange environment report script Run the following: .\Get-ExchangeEnvironmentReport.ps1 -HTMLReport .\YourOrganization-report.html Which will generate the environment report on the local directory where you are running the script from NOTE: don’t forget to run the Exchange Management Shell as an Admin (elevated prompt) Exchange Health Report Exchange Health Report Script from Paul Cunningham...