Powershell Script with True or False query values

By | December 16, 2015

This is a quick post again more as a reminder for me as I got caught out when writing a powershell script the other day.  When using TRUE and False boolean values in a script, the correct usage is $True and $False, if you were to use just True it would return the value True however if you were to use False it would return the value True.

This link provides a good explanation of why http://blogs.msdn.com/b/powershell/archive/2006/12/24/boolean-values-and-operators.aspx

Leave a Reply

Your email address will not be published. Required fields are marked *