It does not work...
I've tried the following:
OS is Win 8.1.
Returns "Other User" although I have administrator rights.
I've tried the following:
Code
Private Sub aa()
Dim wp = New WindowsPrincipal(WindowsIdentity.GetCurrent())
If wp.IsInRole(WindowsBuiltInRole.Administrator) Then
MessageBox.Show("Admin!")
Else
MessageBox.Show("Other User")
End If
End SubOS is Win 8.1.
Returns "Other User" although I have administrator rights.


![[Image: uzpE9zW.jpg]](https://i.imgur.com/uzpE9zW.jpg)