PowerShell Script – Are we running as Admin?

While exploring some of the new cmdlets that come with Windows 8.1 I came across Test-NetConnection. and noticed that it has a property called IsAdmin. When running the cmdlet in an elevated PowerShell session the property returns True otherwise False. So I put together a very simple script to check whether we are running as admin or not.

Other (and probably more reliable) ways to determine whether we are running as admin are described Read More …