PowerShell converting System.Byte[]


hi,

have writing garbled data of our extensiondata attributes, on of our distribution lists. i'll use repadmin /showobjmeta track down offending user account in meantime i'm trying output particular attribute csv in order find out ones have been borked.

here's current command:

get-adgroup -filter * -properties extensiondata,whenchanged | where-object{$_.extensiondata -ne ""} | select distinguishedname, @{l='extensiondata'; e={$_.extensiondata -join ";"}}, whenchanged | export-csv out.csv -notypeinformation

returns dn, date object changed , extensiondata:

system.byte[]

or some:

system.byte[];system.byte[];system.byte[];system.byte[];system.byte[];system.byte[]

etc.

i'm struggling convert believe hexadecimal value readable string , hoped help.

if don't include line:

@{l='extensiondata'; e={$_.extensiondata -join ";"}}

extensiondata attrib csv shows:

"microsoft.activedirectory.management.adpropertyvaluecollection"
thanks!



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Group Policy Event ID 1058 Error Code 1326 (The user name or password is incorrect)

Suspicious event log Event ID: 4905

DCOM received error "2147746132" from...