Guest User

Untitled

a guest
Dec 11th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $currentPrincipal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) if(!($currentPrincipal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator))){ "You are not an Admin"}
Add Comment
Please, Sign In to add comment