Published
- 1 min read
powershell check if user is admin
The solution for this is noted below
powershell check if user is admin
Solution
$elevated = ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)
Try other methods by searching on the site. That is if this doesn’t work