use hyper-v admin group, not admin

This commit is contained in:
Matthew Hooker 2017-10-25 09:25:12 -07:00
parent 812fd12a0b
commit 794e518eb7
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ func (d *HypervPS4Driver) isCurrentUserAHyperVAdministrator() (bool, error) {
var script = `
$identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$principal = new-object System.Security.Principal.WindowsPrincipal($identity)
$hypervrole = [System.Security.Principal.SecurityIdentifier]"S-1-5-32-544"
$hypervrole = [System.Security.Principal.SecurityIdentifier]"S-1-5-32-578"
return $principal.IsInRole($hypervrole)
`