📅  最后修改于: 2022-03-11 14:49:40.955000             🧑  作者: Mango
$elevated = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)