powershell - Displaying Active directory extended properties -
the following script using active directory extended properties filter results correctly shows ad users "script_ignore" in 'info' field (this 'notes' field on telephones tab in ad users & computers).
however doesn't display extended properties i'd expected in following foreach-object %_info or $_city.
how can output extended properties?
get-aduser -filter { info -like "script_ignore" } | % { $_.name + " " + $_.city + " " + $_.info }
you need add property you're interested in not included in default property set, in properties parameter.
get-aduser -filter { info -like "script_ignore" } -properties city,info | % { $_.name + " " + $_.city + " " + $_.info }
Comments
Post a Comment