Powershell – Variable for Null, Empty String and White Space

More often than not, we create variables with the intent they will hold a value. We typically then choose to act upon that value. Therefore, if a variable doesn’t have value, this is something we would want to check against in our conditional logic flow. Read More …

Send email with attachment – PowerShell

Sending an email with PowerShell can be a great way to deliver data under the correct circumstances. It takes some Read More …

Error messages in SQL (including TRY, CATCH, RAISERROR and THROW)

You can use BEGIN TRY to trap errors from SQL Server 2005 onwards, and also raise your own errors using Read More …

Set an Environment Variable in Windows – Command Line and Registry

Environment variables are not often seen directly when using Windows. However there are cases, especially when using the command line, Read More …

Cannot start Exchange Management Shell – Error: Cannot determine the content type of http response…

After applied Exchange 2010 SP3 and Rollup 2 for Exchange 2010 SP3 on Mailbox Server Role server only, Exchange management Read More …