Answers for "powershell check if elevated"

1

powershell check if elevated

([Security.Principal.WindowsPrincipal] `
  [Security.Principal.WindowsIdentity]::GetCurrent() `
).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
Posted by: Guest on August-06-2020

Code answers related to "powershell check if elevated"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language