Test if PowerShell has been run as Administrator

A quick utility function to add into your scripts to test whether or not PowerShell has been run as Administrator.

The function returns a boolean value ($True or $False).

Example Usage

Leave a Reply

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