Ansible has the full power of PowerShell available at hand, just find out how to do it there and then use win_shell to execute the task. A quick Google search brings up a few pages on how this can be done in PowerShell, the one I find easiest to use is https://www.morgantechspace.com/2015/09/convert-sid-to-username-using-powershell.html.
Thanks Jordan -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9fed711b-31b2-4fc6-b3b3-0ad587969783%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
