Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)