How do I display a “Microsoft.ActiveDirectory.Management.ADPropertyValueCollection” using PowerShell
PS C:Usersserveradmin.QA> Get-ADDomainController -Filter * | Select-Object Name, OperationMasterRoles |Where-Object {$_.OperationMasterRoles}
Name OperationMasterRoles
—- ——————–
ADAICTQA {SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster…}
in the above command I output OperationMasterRoles Id like those to be displayed in the same row comma seperated …how do I disect that ADPropertyValueCollection ?
PS C:Usersserveradmin.QA> Get-ADDomainController -Filter * | Select-Object Name, OperationMasterRoles |Where-Object {$_.OperationMasterRoles}
Name OperationMasterRoles
—- ——————–
ADAICTQA {SchemaMaster, DomainNamingMaster, PDCEmulator, RIDMaster…} in the above command I output OperationMasterRoles Id like those to be displayed in the same row comma seperated …how do I disect that ADPropertyValueCollection ? Read More