get-aduser wildcards for finding extension attribute
hello,
the end users in our organization have 100+ property names include; distinguished name, extension , custom attributes, boatload of custom attributes, on , forth. if perform "get-aduser -properties | more" there many scan through find 1 need begins word "script". i tried operator in manner below:
get-aduser user12345 | where-object {$_.name -like "*script*"}
and
get-aduser user12345 -propertites * | where-object {$_.name -like "*script*"}
i don't' errors don't have results either. made sure attribute naming convention existed , there several entries start word "script". still no results returned. would input.
thank you,
admin
ok have 25 views on , still no-one has suggestions? think may overlooking minor detail. surely has suggestion right?
hello,
you should ask in windows powershell forum.
however, generally, you'd pipe cmdlet select-object cmdlet
get-aduser user12345 -propertites * |select-object *script*
karl
when see answers , helpful posts, please click vote helpful, propose answer, and/or mark answer.
blog: unlock powershell
book: windows powershell 2.0 bible
e-mail: -join ('6f6c646b61726c40686f746d61696c2e636f6d'-split'(?<=\g.{2})'|%{if($_){[char][int]"0x$_"}})
Windows Server > Windows PowerShell
Comments
Post a Comment