Send HTML Email using Microsoft Graph SDK

  We were in a situation where we want to send the email from one of the automations without using our on-premises relay. I was recently exploring Microsoft Graph SDK because of the future retirement for MSOL and AZUREAD modules. Its not just a module but it is a utilities box for Microsoft cloud eco…

PowerShell Exchange Exception – Cannot bind argument to parameter ‘TokenProvider’ because it is null

We have upgraded the Exchange Online Management PowerShell Module to newer version (2.0.3). Install-Module -Name ExchangeOnlineManagement -RequiredVersion 2.0.3 After upgrade some of our solutions started giving below errors: Exception calling “GetSteppablePipeline” with “1” argument(s): “Cannot bind argument to parameter ‘TokenProvider’ because it is null.” On researching, We have found that this is only happening in…

PowerShell – Export Import Scheduled Tasks

We had a requirement to migrate our existing servers that have around hundreds of scheduled tasks. Creating those tasks manually is cumbersome therefore created this solution for current situation and future, for backing up and restoring the tasks to new server. Download and extract the Solution from Github ExportImportTasks.zip First Script is Export Tasks solution,…

PowerShell TIP – .replace vs -replace

I have been writing PowerShell scripts simple to advanced from a long time but still sometimes I get amazed with things that I come across while reviewing the automations and scripts. These are smaill things but can cause big issues if awareness is not there. We always consider Powershell as case insensitive but this scenario…