CSOM Error – Exception calling “ExecuteQuery” with “0” argument(s): The underlying connection was closed

I woke up one morning and seen majority of my scripts started failing with error: Exception calling “ExecuteQuery” with “0” argument(s): The underlying connection was closed On troubleshooting, it was found these were all scripts where I have utilized SharePoint Client Object Model (CSOM). After a thought I immediately pin pointed it to TLS 1.2…

Active Directory Health Check V2

This is one of my work that is being used by thousands of customers, it was downloaded more than 30000 times before Microsoft TechNet gallery was retired. (AD Health Check V1) I can still see a lot of interest in this script so parameterizing/small updates and placing it in Powershell Gallery for ease of download.…

Get AD Group Members Recursively V2

I am releasing version 2 of the AD group members recursive function after requests from some of my followers and colleagues. This version has added functionality to show groups if you use parameter -ShowGroups $true (its optional parameter). If you are using this in your existing scripts those will continue to work as functionality has…

PowerShell – Microsoft Secret Vault Store

There are many virtual vault solution to store the passwords like lastpass, key pass etc. Today we will go thru PowerShell Microsoft Secret Vault that you can utilize with PowerShell, you can store credentials securely and have a master password to access it. Install the below modules: Insatll-Module -Name Microsoft.PowerShell.SecretManagement Insatll-Module -Name Microsoft.PowerShell.SecretStore Let us…