SID to username?

15 views
Skip to first unread message

b...@tanners.org

unread,
Apr 23, 2018, 1:15:50 AM4/23/18
to Ansible Project
Is there a way to get the username from the SID with ansible?

Jordan Borean

unread,
Apr 23, 2018, 1:35:33 AM4/23/18
to Ansible Project
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

Bob Tanner

unread,
Apr 23, 2018, 1:43:05 AM4/23/18
to ansible...@googlegroups.com

On Apr 23, 2018, at 12:35 AM, Jordan Borean <jbor...@gmail.com> wrote:

Ansible has the full power of PowerShell available at hand

I should have been more specific in my question. Meant native to ansible. I’ll jump to powershell.

signature.asc
Reply all
Reply to author
Forward
0 new messages