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

Popular posts from this blog

Error: 0x80073701 when trying to add Print Services Role in Windows 2012 Standard

Disconnecting from a Windows Server 2012 R2 file sharing session on a Windows 7,8,10 machine

Event ID 64,77,1008 Certificates Events Windows Server 2008, 2008R2