Hallo. If I run this code
$server = "."
$adsi = [ADSI]"WinNT://$server"
$adsi.psbase.children | where {$_.schemaClassName -match "user"} | select name, objectsid |Format-Table -auto
I get object sid in this form
1 5 0 0 0 0 0 5 21 0 0 0 138 93 63 151 163 49 215 2 60 164 164 50 236 3 0 0
I'd like to know if it's possible to convert it to get the same result that you have from win32_useraccount class. Thanks in advance