$sid = (Get-ADUser -Filter {sAMAccountName -eq "<yourfiltervalue>" }| Select-Object SID) ([string]$sid).ToCharArray() | % { $sidToHex += ("{0:x} " -f [int]$_) } $sidToHex
Powered by WordPress | Made with ❤ by Themely