Answers for "powershell check if user is admin"

0

powershell check if user is admin

$elevated = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
Posted by: Guest on October-29-2021

Code answers related to "powershell check if user is admin"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language