Skip to content

Commit f748ac1

Browse files
gbraadshin-
authored andcommitted
Fix issue with localized groups
Signed-off-by: Gerard Braad <me@gbraad.nl>
1 parent 0c3f538 commit f748ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hyperv/powershell.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func isAdministrator() (bool, error) {
8585
}
8686

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

0 commit comments

Comments
 (0)