How to get user name instead of SID during WMI logcollection

303 views Asked by At

I'm looking for a possible solution to convert a Windows user SID to a username.

I am running WQL queries against some local namespace and would like to know if there are any possibilities to get a username instead SID like an event viewer. I am using WBEMTest for testing.

Screenshot for reference. enter image description here

1

There are 1 answers

2
Anders On

SELECT * FROM Win32_AccountSID should get you a list you can match the SID to the name.