Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
Fix issue with localized groups
Browse files Browse the repository at this point in the history
Signed-off-by: Gerard Braad <me@gbraad.nl>
  • Loading branch information
gbraad authored and shin- committed Oct 24, 2017
1 parent 0c3f538 commit f748ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hyperv/powershell.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func isAdministrator() (bool, error) {
}

func isHypervAdministrator() bool {
stdout, err := cmdOut(`@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("Hyper-V Administrators")`)
stdout, err := cmdOut(`@([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole("S-1-5-32-578")`)
if err != nil {
log.Debug(err)
return false
Expand Down

0 comments on commit f748ac1

Please sign in to comment.