<code>(whoami /all | select-string S-1-16-12288) -ne $null</code> For example, I entered it and received this response, showing my session is running elevated:
True
To learn more, see "Top 10 PowerShell Annoyances." You might also be interested in "Top 10 Active Directory Tasks Solved with PowerShell."





