On Jan 30, 9:13 pm, Shay Levi <n...@xxxxxx> wrote:
> It shouldn't be 
>
> IMO, get-qadgroup should have 'powershell' as the default, just like all
> other cmdlets (powershell, exchange).
> System admins are using wildcards on a *command to command* basis, its a
> part of the 'consistency' notion in powershell.
>
> BTW, Kirk's command worked fine on my machine, try to replace $_.DN with
> $_.Name
>
> -----
> Shay Levi
> $cript Fanatichttp://scriptolog.blogspot.com
>
> > On Jan 30, 7:54 pm, "Kirk Munro [MVP]" <so...@xxxxxx> wrote: >
> >> I logged the issue with Get-QADGroupMember not taking pipelined
> >> groups correctly on the PowerGUI.org site a little while ago, and
> >> according to the QAD team it will be fixed in an upcoming release.
> >> It's unfortunate that this isn't working as we expect it should
> >> today, but at least it will be fixed. >
> >> In the meantime you can work around it by doing this: >
> >> Get-QADGroup | ForEach-Object { Get-QADGroupMember $_.DN } >
> >> Regarding the wildcard issue, that is surprising. I'll communicate
> >> that finding on the PowerGUI.org community site as well and see what
> >> I find out. >
> >> --
> >> Kirk Munro [MVP]
> >> Poshoholichttp://www.poshoholic.com
> >>>> I want to know if the Quest Get-ADGroupMember has the option to use
> >>>> wild cards for the groups you want data returned on. Example, I
> >>>> need to return all the members of 20 different groups and know all
> >>>> the group end in "_admin" Does the ADGroupMember cmdlet allow for
> >>>> wildcards so I can return members for all _admin group in the
> >>>> domain? Any help would be appreciated. >
> > The workaround doesn't work. :-( >
> > Get-QADGroupMember : Invalid type of identity. Type of specified
> > identity: group. This cmdlet allows only: user.
> > At line:1 char:51
> > + Get-QADGroup | ForEach-Object { Get-QADGroupMember <<<< $_.DN }
> > Regarding the wildcard issue, that is not surprising. ;-)
> > Default wildcard mode is 'LDAP', and LDAP doesn't like *_admin. To get
> > all the groups that ends with _admin you should change wildcard mode
> > to 'PowerShell'.
> > get-qadgroup -wildcardmode 'powershell' -name *_admin > Get-QADGroup | ForEach-Object { Get-QADGroupMember $_.Name } doesn't
work for me. It breaks at the same two groups as when I use $_.DN. One
of the problematic groups contains another group which contains one
disabled user, and the second group contains one computer object.
Strange.
On the other hand, it works great for a group that contains multiple
computer objects. (So, it looks like the error message "Get-
QADGroupMember : Invalid type of identity. Type of specified identity:
group. This cmdlet allows only: user." is not appropriate, because the
command works fine when the group contains the computer objects.
-aleksandar
http://powershellers.blogspot.com