Hello Chris,
btw I just thought of something. How about using the UserPrincipalName instead
of the samaccountname ?
The UPN consists of user@xxxxxx, and unless you've actively been changing
it, the domain part should be
the domain the user is in (as I understand it, you don't necessarily have
to use the actual domain name, as
long as the UPN is unique).
If nothing else, it gives you a unique identifier for the user, which samaccountname
isn't, when we're talking
multiple domains.
$(Get-QADUser "user").UserPrincipalName
--
Kind Regards,
Jacob Saaby Nielsen
http://www.ijacob.info
PowerShell trouble ?
http://www.powershellcommunity.org
> I'm using the QUEST AD plug in and having an issue. When I pull the
> data, I'm missing some groups users. What my issue is, if I'm running
> this pull against domain ABC, if a member from the XYZ domain is a
> member of an ABC group, it does not grab information on the user;
> simply leaves it blank. It only list users which are in the same
> domain as the group, not external domains.
>
> Get-QADGroup -service 'DOMAIN_ABC.DOMAIN' -sizeLimit 0 | select
> @{name="GroupName";expression={$_.name}} -expand members | select
> GroupName,@{n='Member';e={ (Get-QADObject $_).sAMAccountName
> }}