diff --git a/salt/osfamilymap.yaml b/salt/osfamilymap.yaml index a4d698cc5..ba6d09669 100644 --- a/salt/osfamilymap.yaml +++ b/salt/osfamilymap.yaml @@ -19,7 +19,7 @@ {%- set rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %} {%- set rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %} {%- elif grains.os_family == 'Windows' %} -{%- set rootuser = salt['cmd.run']("whoami") %} +{%- set rootuser = salt['cmd.run']("echo %USERNAME%") %} {%- endif %}