Blog LogoBlog Logo

Tag: authorisation

All tags

How to: Tell if a PowerShell script is running as the Administrator

$currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) if (-not...

— 10 Aug 2019