Usually Emails originated within Exchange Organization are considered "Internal" trusted emails. All other emails coming outside of Exchange organization are "External" emails and usually considered less trustworthy. How to make the emails coming from internal application servers are trusted emails in On-Prem Exchange environment? Answer is understanding of how to setup the Exchange Receive Connector(s). … Continue reading Exchange (OnPrem): How to make Emails from Internal Application servers are trusted/internal emails?
Move Mailbox to OnPrem: “MigrationPermanentException: Cannot find a recipient that has mailbox GUID “
You are trying to move a mailbox from Exchange Online to Exchange OnPrem, and you get this error message: "MigrationPermanentException: Cannot find a recipient that has mailbox GUID <GUID>" MSKB Article explains why it happens and how to solve it. It involves note down the mailbox GUID from Exchange Online and modifying the mailbox GUID … Continue reading Move Mailbox to OnPrem: “MigrationPermanentException: Cannot find a recipient that has mailbox GUID “
How to Connect Exchange Online & On-Premises Exchange server on a single PowerShell Window
Are you connecting to Exchange Online and On-premises Exchange server in two different PowerShell windows? Are you struggling to script to do things with two different Exchange environments? Say No More to that struggling. Say HELLO to "PREFIX" when connecting to Exchange server in PowerShell. This blog post will show you how to connect both … Continue reading How to Connect Exchange Online & On-Premises Exchange server on a single PowerShell Window
PowerShell: List all DL Members recursively
I had a situation to list all members of distribution group (DL) or security group to validate the members. Problem was the DL had other DLs as members. I had to write a quick script to list all members recursively. If you have the same requirement of listing all members of a DL, feel free … Continue reading PowerShell: List all DL Members recursively
PowerShell Tip: How to remove items from an Array? Yes, it is possible.
Are you trying to figure out how to remove array items from an Array? Were you end up coding a foreach loop & create a new array? I have an easy way without using new array or foreach loop. Here it is: $ArrayVar = $ArrayVar | Where-Object{-not($_ -eq 'ItemValue')} Now to describe how it been … Continue reading PowerShell Tip: How to remove items from an Array? Yes, it is possible.
PowerShell: Combine CSV files into a single CSV file
I had a need to combine multiple CSV files. And worked for few minutes and came up with this PowerShell method. Get-ChildItem -Filter *.csv -Path C:\Scripts\CSVFiles | Select-Object -ExpandProperty FullName | Import-Csv | Export-Csv C:\Scripts\CSVFiles\CombinedFile.csv -NoTypeInformation -Append Idea of this method is Get the filenames with full path of the CSV filesImport them all Pipe … Continue reading PowerShell: Combine CSV files into a single CSV file
CSV Viewer – an awesome Powershell solution
When working with some CSV files in my Windows Servers, I was wondering how can I view the CSV file without installing any third-party viewers. Here is my one-liner PowerShell solution. I am using Out-GridView with "-Wait" option. Make sure PowerShell Execution Policy is set to run local scripts. Here is how you do it … Continue reading CSV Viewer – an awesome Powershell solution
Exchange: Calendar Folder Permissions and Delegates
There are two kinds of permission for Calendar in Mailbox. A user can have Folder permission to calendar Delegate permissions Folder permission is used by another user to access the calendar and Delegate permission is given to a user to manage the calendar behalf of the giving user. Both kinds of permission can be given … Continue reading Exchange: Calendar Folder Permissions and Delegates
Exchange: Mailbox Folder Size Report
As an Exchange Administrator, you can generate a mailbox folder size report for any user. It is extremely helpful if the USER doesn't know how his/her mailbox is reaching size limit & which FOLDER has most emails. Well here is the one-liner PowerShell script (Note: Replace username@company.com with user's email address): Get-MailboxFolderStatistics username@company.com | Select-Object … Continue reading Exchange: Mailbox Folder Size Report
Windows Server 2016/2019: Where the hell the time zone settings?
If you are trying right-clicking on Date/Time on task bar, choosing Adjust date/time: And you are stuck at Windows new settings page, where changing the time zone doesn't take effect. Here you say: "What the HELL?" So, I say go for old Time settings from control panel to change the time zone. Here is how … Continue reading Windows Server 2016/2019: Where the hell the time zone settings?