📌  相关文章
📜  powershell 检查用户是否为管理员 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:40.955000             🧑  作者: Mango

代码示例1
$elevated = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)