How to sync any folder to OneDrive?


Do you want to sync/backup directories that out side of OneDrive sync'ed directory? For example, you have a directory at "D:\SDCard\PortableApps\PNotesPortable" and you want take a backup to OneDrive. You have come to right place. This works for OneDrive (consumer) as well as OneDrive for Business. Here is how you do it. Creating a junction … Continue reading How to sync any folder to OneDrive?

Exchange Online: Calendar Permissions – “Some Permissions cannot be displayed”


I needed remove few disabled users from the permission set in the Calendar. I got this error: "The security principal specified is already on the permission set". To fix this error, I was using my other blog post: https://anandthearchitect.com/2018/06/29/get-mailboxfolderpermission-the-security-principal-specified-is-already-on-the-permission-set/. Here is the wrinke. If you have Full Access permission to a mailbox, when you open … Continue reading Exchange Online: Calendar Permissions – “Some Permissions cannot be displayed”

Exchange (OnPrem): How to make Emails from Internal Application servers are trusted/internal emails?


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 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