attribute seems to give byte array. How to convert to string?
hello all,
when view attribute in aduc, appears text. when pull same attribute in powershell, displays so:
i'm guessing byte array? there way convert string aduc displays it?
if it's multivalued tony says, you're getting array of byte arrays (and, says, strings may mixed in). see if works:
get-adgroup "testgroup" -properties extensiondata | select -expandproperty extensiondata | foreach-object { [system.text.encoding]::ascii.getstring($_) }if does, might want put kind of check try convert string if data byte array.
Windows Server > Windows PowerShell
Comments
Post a Comment