User Administration windows 10

Joined
Jun 6, 2016
Messages
53
Reaction score
2
I have account within Amininistration group

The code Powershell ( and .NET as well )
(new-object System.Security.Principal.WindowsPrincipal([System.Security.Principal.WindowsIdentity]::GetCurrent())).IsInRole("Administrators")

returns false

-------------------------

I ran command
[System.Security.Principal.WindowsIdentity]::GetCurrent().Groups

in 2 cases under my account and Powershell as Administrative

and found that Powershell as Administrative has 4 more roles



Powershell as Administrative

BinaryLength AccountDomainSid

-- ---------------- -----
12 S-1-1-0
12 S-1-5-114 - Extra
28 S-1-5-21-573147726-3479669810-588349159 S-1-5-21-573147726-3479669810-588349159-1001
16 S-1-5-32-544 - Extra
16 S-1-5-32-551 - Extra
16 S-1-5-32-559
16 S-1-5-32-547 - Extra
16 S-1-5-32-545
12 S-1-5-4
12 S-1-2-1
12 S-1-5-11
12 S-1-5-15
52 S-1-11-96-3623454863-58364-18864-2661722203-1597581903-24264218...
12 S-1-5-113
12 S-1-2-0
16 S-1-5-64-36


Powershell as Me
BinaryLength AccountDomainSid Value
------------ ---------------- -----
12 S-1-1-0
28 S-1-5-21-573147726-3479669810-588349159 S-1-5-21-573147726-3479669810-588349159-1001
16 S-1-5-32-559
16 S-1-5-32-545
12 S-1-5-4
12 S-1-2-1
12 S-1-5-11
12 S-1-5-15
52 S-1-11-96-3623454863-58364-18864-2661722203-1597581903-24264218...
12 S-1-5-113
12 S-1-2-0
16 S-1-5-64-36


Question :
How can I set my account as truly admin?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top