Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - PowerShell Active Directory Groups_Users Issue.

Reply
 
Old 10-02-2008   #1 (permalink)
Chris


 
 

PowerShell Active Directory Groups_Users Issue.

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
}}

My System SpecsSystem Spec
Old 10-02-2008   #2 (permalink)


Vista Ultimate 32bit
 
 

Re: PowerShell Active Directory Groups_Users Issue.

I don't have a multiple domain setup to test right now. Does it make a difference if you query a global catalog server?
My System SpecsSystem Spec
Old 10-02-2008   #3 (permalink)
Chris


 
 

Re: PowerShell Active Directory Groups_Users Issue.

....That I'm unsure of. Have not tried. Is possible, that would probably be
a better solution since I have one ps1 file per domain (10+).....

Any suggestions..>?




"sapienscripter" wrote:
Quote:

>
> I don't have a multiple domain setup to test right now. Does it make a
> difference if you query a global catalog server?
>
>
> --
> sapienscripter
>
> Now Available: '-Managing Active Directory with Windows PowerShell:
> TFM-'
> (http://www.scriptingoutpost.com/p-39...shell-tfm.aspx)
>
> [image: http://www.scriptinganswers.com/_images/logo_mvp.gif]
>
My System SpecsSystem Spec
Old 10-03-2008   #4 (permalink)
Jacob Saaby Nielsen


 
 

Re: PowerShell Active Directory Groups_Users Issue.

Hello Chris,

what types are the groups ? Domain Local ? Universal ? Etc...

Try making them universal if they're not. It's what's recommended these days
anyway.
See if that changes things for you

--
Kind Regards,
Jacob Saaby Nielsen
http://www.ijacob.info

PowerShell trouble ? http://www.powershellcommunity.org
Quote:

> ...That I'm unsure of. Have not tried. Is possible, that would
> probably be a better solution since I have one ps1 file per domain
> (10+).....
>
> Any suggestions..>?
>
> "sapienscripter" wrote:
>
Quote:

>> I don't have a multiple domain setup to test right now. Does it make
>> a difference if you query a global catalog server?
>>
>> -- sapienscripter
>>
>> Now Available: '-Managing Active Directory with Windows PowerShell:
>> TFM-'
>> (http://www.scriptingoutpost.com/p-39...irectory-with-
>> windows-powershell-tfm.aspx)
>>
>> [image: http://www.scriptinganswers.com/_images/logo_mvp.gif]
>>

My System SpecsSystem Spec
Old 10-03-2008   #5 (permalink)
Jacob Saaby Nielsen


 
 

Re: PowerShell Active Directory Groups_Users Issue.

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
Quote:

> 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
> }}

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Access Active directory with sql server in powershell PowerShell
Making changes to Active Directory with Powershell PowerShell
How do I delete an OU in Active Directory from Powershell. PowerShell
Powershell & Active Directory PowerShell
Active Directory support in PowerShell PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46