Power Shell in a TCMD window

#5
You can ask PowerShell (of course it isn't easy). Here's a simplification of some code I Googled up.

Code:
$wid=[System.Security.Principal.WindowsIdentity]::GetCurrent()
$prp=new-object System.Security.Principal.WindowsPrincipal($wid)
$adm=[System.Security.Principal.WindowsBuiltInRole]::Administrator
$IsAdmin=$prp.IsInRole($adm)
if ($IsAdmin) { echo yes }