Powershell SID to Hex

$sid = (Get-ADUser -Filter {sAMAccountName -eq "<yourfiltervalue>" }| Select-Object SID) 
([string]$sid).ToCharArray() | % { $sidToHex += ("{0:x} " -f [int]$_) }
$sidToHex
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...