![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
![]() |
| 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 | |||