Get-adgroupmember gives operation timeout error

Hi experts,
i am tring to get the user names from few groups in AD. But it displays me an eror for few groups like
ERROR :-
At D:\All Scripts\AD Scripts\groupmember.ps1:7 (file:///D:/All%20Scripts/AD%20Scripts/groupmember.ps1:7) char:1
+ Get-ADGroupMember vpn_terminal_access | Foreach-object{
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : O
perationTimeout: (vpn_terminal_access:ADGroup)
[Get-ADGroupMember], TimeoutException
+ FullyQualifiedErrorId : ActiveDirectoryCmdlet:System.TimeoutException,Mi
crosoft.ActiveDirectory.Management.Commands.GetADGroupMember
SCRIPT -
Get-ADGroupMember ABC | Foreach-object{
   $_.samaccountname | get-aduser -properties * | Ft name, emailaddress | out-file .\ABC.csv -enc utf8 -append
ABC is group name. What i need to do ?

Doesn't matter. The user principal is very easy to get.  It is the embedded Get-AdUser that is time consuming because it mkes Get-AdGroupMember wait on every member.  If any member is in another domain and the network is slow it can cause a timeout. 
Yes= Using Get-ADGroup would be faster but it, too, returns an array of strings and NOT a comma delimited list.
Under most circumstances the difference is trivial.  If the domains are remote then this is an issue.  One more reason to not place users in a group when remote. Place them in a group and place the group in the group.  Overall performance
for everything is better and more reliable.  That is why it is designed that way.  In NT4 this was not as easy so NT4 was prone to this kind of failure. Too often Admins just add users to local groups when they are remote. They then complain about
performance. It can very badly impact logon performance.
Notice that this is a collection (array):
PS C:\scripts> (Get-AdGroup testgrp -prop members).members.GetType()
IsPublic IsSerial Name BaseType
True False ADPropertyValueCollection System.Collections.CollectionBase
For this property only it is a collection of strings. It can be a collection of any "ValueType"
¯\_(ツ)_/¯"

Similar Messages

  • Why do i keep getting the "internet connection timeout" error message?

    i have been upgrading a few standard itunes albums to itunes plus versions through my 3g mobile broadband connection, while not exactly a fast process, it was working fine until i started to get a backlog of 3 or 4 albums which were waiting in a queue to be downloaded, now every time i do the "check for downloads" option i get the "internet connection timed out" error message...this has been going on for 2 days! am i right in suspecting the backlog of albums is too much for my 3g mobile broadband connection? this is really doing my head in, if any of you techies could help me, it'd be much appreciated...?

    yes i have recently updated to itunes 8.2.1, but i am starting to think its apple's servers (i tried to download at my brothers house...different computer and connection...same connection timeout error), because it will still let me download an album, but not necessarily all of the tracks. when i questioned itunes customer services about the seemingly hit and miss state of affairs with downloading, they told me to wait 3 weeks before trying to download the tracks that were giving me the grief (2 tracks from an arctic monkeys album)...which kinda indicates they know there is a problem and are trying to fix it, why else would they say wait 3 wks??? they gave me 5 free music tracks too, which is handy.

  • SCXI_Reset gives a timeout error (-10800) occasionally

    I have two chassis's controlled by two seperate DAQ boards. PXI 6052E controls chassis one (SCXI 1001 with six 1102c's) and PXI 6031E controls chassis two (SCXI 1000 with three 1102's). Chassis Two is the one that causes the timeout error.
    Attachments:
    Data_pump.zip ‏11 KB

    Greetings,
    The -10800 timeout error is an odd error to be returned from the SCXI_Reset() function. What do you mean by occasionally? How often does the error get returned? Are there special circumstances in your test that might be related to this error? When you receive this error are you still able to communicate with your DAQ board and/or the SCXI chassis?
    If you change the order in which the SCXI_Reset is called, such that you attempt to reset chassis 1 before chassis 2, does this make a difference?
    Regards,
    Justin Britten

  • Sample APP download link on OTN gives a timeout error

    I went to the sample apps page here
    http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html
    and clicked on the sample app setup files which is this link
    https://www.samplecode.oracle.com/sf/pluggable/do/viewPluggableComponent/linkid/prpl1004?id=S568&dapCheckedPassed=false
    It redirects to this link and gives a timeout.
    http://www.samplecode.oracle.com:7777/SSOLogin?redirectUrl=https%3A%2F%2Fwww.samplecode.oracle.com%2Fsf%2Fpluggable%2Fdo%2FviewPluggableComponent%2Flinkid%2Fprpl1004%3Fid%3DS568%26dapCheckedPassed%3Dfalse

    The link works fine for me. Try again :)

  • E1550 - Error code 82BD0119, Cisco Connect gives connection timeout error during setup

    During setup, after 90% completion I get "adapter connection timeout period expired". I'm unable to configure my router.
    I downloaded the lates Cisco Connect software and tried that as well but I get the same problem.
    Operating System : Windows Vista Home Premium SP1 (32 bit).
    Any help will be apreciated. Thanks.

    I believe you have a static IP address assigned in the computer. Here are the steps to check for the wireless:
    ~~ Go to Wireless network connection properties.
    ~~ Click On Internet protocol TCP/IP and go to properties.
    ~~ Select 'Obtain IP address automatically' and 'Obtain DNS server automatically'.
    ~~ Click OK and then close.
    Check for the Local Area Connection as well in the same procedure.
    Then uninstall the existing Cisco connect software, reset the router.
    Steps to reset the router:
    Push the reset button on router for 30 seconds, turn off the router wait for 30 seconds and then power it on. After this process reconfigure the router. Power light should blink when you perform the reset process.
    After performing the following steps install the Cisco connect again and check the status.

  • Outlook 2010: Getting a "the operation failed" error when accepting invite from inbox

    One of the people I support is using Win 7 and Office 2010. When accepting an invite in his inbox, he gets "This Operation Failed", however this behaviour only occurs for internal staff who email him through Exchange. I emailed him from an external email
    address and he was able to accept the invite and have it appear in his calendar correctly.
    We are running Exchange 2007 and his client is Office 2010.
    I'm going to try the following to try to get to the bottom of things
    1. Check account settings
    2. Disable antivirus
    3. Try non cached mode
    4. Check Delegate access?
    5. Check event logs
    6. Office updates / service packs
    7. Repair job of Office 2010
    8. Reinstall Office 2010 or install 2007
    Does anyone have any other suggestions?

    Glad your issue has been resolved.
    Thanks for your sharing.
    Evan Liu
    TechNet Subscriber Supportin forum
    If you have any feedback on our support, please [email protected]
    Evan Liu
    TechNet Community Support

  • ORA-12535:Operation Timeout Error

    I am uploading text file to the database .It is waiting for sometime and then giving me ORA-12535 error.Kindly Help...

    Please check metalink noet 119706.1
    rgds

  • Silverlight asynchronous request dies and gives constantly timeout errors, how come?

    here's the stacktrace message
    <E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
    <EventID>131075</EventID>
    <Type>3</Type>
    <SubType Name="Error">0</SubType>
    <Level>2</Level>
    <TimeCreated SystemTime="2011-10-27T16:14:11.5966910Z" />
    <Source Name="System.ServiceModel" />
    <Correlation ActivityID="{84108981-8cda-4faa-b776-7af84e6729ee}" />
    <Execution ProcessName="w3wp" ProcessID="3420" ThreadID="3" />
    <Channel />
    <Computer>TURBULATOR</Computer>
    </System>
    <ApplicationData>
    <TraceData>
    <DataItem>
    <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Error">
    <TraceIdentifier>http://msdn.microsoft.com/nl-NL/library/System.ServiceModel.Diagnostics.ThrowingException.aspx</TraceIdentifier>
    <Description>Uitzondering opgetreden.</Description>
    <AppDomain>/LM/W3SVC/1/ROOT-1-129642039487983344</AppDomain>
    <Exception>
    <ExceptionType>System.ServiceModel.ProtocolException, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
    <Message>Het aantal beschikbare bytes is niet consistent met de HTTP Content-Length-header. Er is misschien een netwerkfout opgetreden, of de client verstuurt ongeldige aanvragen.</Message>
    <StackTrace>
    bij System.ServiceModel.Channels.HttpInput.ReadBufferedMessage(Stream inputStream)
    bij System.ServiceModel.Channels.HttpInput.ParseIncomingMessage(Exception&amp; requestException)
    bij System.ServiceModel.Channels.HttpChannelListener.HttpContextReceived(HttpRequestContext context, Action callback)
    bij System.ServiceModel.Activation.HostedHttpTransportManager.HttpContextReceived(HostedHttpRequestAsyncResult result)
    bij System.ServiceModel.Activation.HostedHttpRequestAsyncResult.HandleRequest()
    bij System.ServiceModel.Activation.HostedHttpRequestAsyncResult.BeginRequest()
    bij System.ServiceModel.Activation.HostedHttpRequestAsyncResult.OnBeginRequest(Object state)
    bij System.Runtime.IOThreadScheduler.ScheduledOverlapped.IOCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* nativeOverlapped)
    bij System.Runtime.Fx.IOCompletionThunk.UnhandledExceptionFrame(UInt32 error, UInt32 bytesRead, NativeOverlapped* nativeOverlapped)
    bij System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
    </StackTrace>
    <ExceptionString>System.ServiceModel.ProtocolException: Het aantal beschikbare bytes is niet consistent met de HTTP Content-Length-header. Er is misschien een netwerkfout opgetreden, of de client verstuurt ongeldige aanvragen.</ExceptionString>
    </Exception>
    </TraceRecord>
    </DataItem>
    </TraceData>
    </ApplicationData>
    </E2ETraceEvent>

    I'm more of a 1.3 chick myself, but the words are the same just in a different language.
    1. Is Tomcat running?
    2. Have you configured the ajp13 connector on 8009 in Tomcat? (Should it be ajp13 for Apache 2.0? - I really must upgrade)

  • Why does logout give timeout error in Local system(India)

    While logging out of the CRM webUI thre system does not signout but waits for the page
    www.sap.com to open and finally gives a timeout error.
    Why does this occur?

    Role based grants are not available within the stored procedures.
    Only explicit grants are recognized when compiling stored code.
    You need to grant select on that table to the user where you are creating this procedure.

  • Timeout error (code 6101) for acquisition from MODBUS instrument

    I am experiencing a problem which other users have reported, but for which little useful information has been posted:
    I am trying to acquire data from an instrument using MODBUS RTU protocol.  The code works as desired for a while, but will intermittently stop executing and give a timeout error, code 6101.  This code seems to be associated with the MB Serial Master Query sub VI.  In the past, I was getting this error as a result of RF noise corrupting the signal in the USB connection to the instrument.  Removing the USB cable from the noisy environment eliminated the problem.  I am now having the problem with an RS 485 line in the noisy environment, which should be very stable in noisy environemnts. 
    My question:  is there a coding trick i can use to reconnect in the event that a corrupt signal occurrs (or some other problem which results in the intermittent appearence of the error 6101)?   I've increased the timeout value on the MB Serial Master Query sub vi, but this hasn't helped.  Any input is appreciated.  In case it's useful, I've posted a simple version of code which generates the problem. 
    Thanks,
    Paul   
    Attachments:
    Floating point 1.12.vi ‏24 KB
    timeout error1.JPG ‏31 KB

    Thanks for your input, Ravens Fan.  I am indeed getting a popup error message with the timeout.  I agree that putting the MODBUS read in its own loop would solve the problem.  However, I'm struggling with trying to figure out how to actually do this.  Should I put the read in a case structure or a while loop?  How do I go about looping back to re-execute the read statement?  I think so called "state machine architecture" seems to be where I should be going. Some example code would be greatly appreciated. 
    paul  

  • Get-ADGroupMember limitations

    Hi All,
    I am trying to run the following query:
    get-adgroup -Filter * -SearchBase "OU=Test,dc=domain,dc=com" | get-adgroupmember | get-aduser -Properties * | Select Name,postalCode
    and get the following error: Get-ADUser : A referral was returned from the server
    Test OU contains Universal Distribution Groups with memebers from different domains in the same forest.
    So I've figured running agains GC server should fix it but I've hit a limitation:
    get-adgroup -Server dcgc01.domain.com:3268 -Filter * -SearchBase "OU=Test,dc=domain,dc=com" | get-adgroupmember | get-aduser -Properties * | Select Name,postalCode
    and got the following error: Get-ADGroupMember : The operation is not supported on Global Catalog port.
    It's Server 2008R2 with PS version 2
    Thank you,
    Naz

    Not being able to control referral chasing behavior is my biggest gripe with the AD module right now.  If you're in a multi-domain environment, you may find it better to either use the Quest cmdlets, or write your own code using the System.DirectoryServices
    namespace.
    In this case, though, I'd just grab the Member attribute of each group, and make individual calls to Get-ADUser in a foreach loop.  This sidesteps the problem and allows you to keep using the simpler AD cmdlets:
    Get-ADGroup -Properties member -Filter * -SearchBase "OU=Test,dc=domain,dc=com" |
    ForEach-Object {
    $group = $_
    foreach ($dn in $group.member)
    Get-ADUser $dn -Properties Name,postalCode |
    Select-Object Name,postalCode
    Or, alternatively:
    Get-ADGroup -Properties member -Filter * -SearchBase "OU=Test,dc=domain,dc=com" |
    Select-Object -ExpandProperty member |
    ForEach-Object {
    $dn = $_
    Get-ADUser $dn -Properties Name,postalCode |
    Select-Object Name,postalCode

  • Get-adgroupmember says it completed successfully but displays nothing in Powershell

    I am trying to display all the members of administrators so I try
    Get-ADgroupmember -identity administrators
    and it returns
    Get-ADGroupmember : The operation completed successfully
    At line:1 Char:18
    + Get-ADgroupmember <<<<
           +CategoryInfo  "NotSpecified: (administrators:ADGroup) [Get-ADGroupMember], ADException
    What am I doing wrong?
    JF

    Hi,
    I have faced this error when the group contains foreign members. Try to use Get-ADGroup and access members property - it should work. PSB example:
    PS C:\> Get-ADGroupMember my_cool_group
    Get-ADGroupMember : The operation completed successfully
    At line:1 char:18
    + Get-ADGroupMember <<<< my_cool_group
    + CategoryInfo : NotSpecified: (my_cool_group:ADGroup) [Get-ADGroupMember], ADException
    + FullyQualifiedErrorId : The operation completed successfully,Microsoft.ActiveDirectory.Management.Commands.GetADGroupMember
    PS C:\> (Get-ADGroup my_cool_group -properties members).members
    CN=Citrixtest\, Citrixtest,OU=Ireland,OU=Users,DC=DOMAIN,DC=LOCAL
    CN=S-1-5-21-830052177-1794105578-3120254253-14766,CN=ForeignSecurityPrincipals,DC=DOMAIN,DC=LOCAL
    CN=S-1-5-21-830052177-1794105578-3120254253-14960,CN=ForeignSecurityPrincipals,DC=DOMAIN,DC=LOCAL
    CN=S-1-5-21-830052177-1794105578-3120254253-10641,CN=ForeignSecurityPrincipals,DC=DOMAIN,DC=LOCAL

  • Crystal report server2008 (XI R2): CMC session timeout error

    HI
    Crystal report server2008 (XI R2): CMC session timeout error
                Accessing folders, scheduling reporting or running reports are working fine with Central Management Console (CMC) within the Crystal report server or accessing CMC within VPN machine.  But when CMC is accessed through browser from client desktop i.e through proxy URL, users are not able to access folder or personal folders to view any reports even admin user is not able to access folders. When users try to access folder or personal folders it gives session-timeout errors. Within less than a 1 or 2 minutes it is showing session timeout error. Appreciates any one help on this quickly.
    Regards,
    Patrick Raths

    Please post your query to the [Business Objects Enterprise Administration|BI Platform; forum. This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    BTW., if thi is an important issue, I'd recommend creating a phone case.
    Ludek
    Edited by: Ludek Uher on Aug 11, 2010 1:58 PM

  • Windows Vista System download timeout error

    Hi,
    Every Adobe Reader download i've tried keeps giving me a download timeout error.
    I have removed all Adobe programs
    Adobe Reader X (10.1.3)
    Adobe Air
    Acrobat.com
    Adobe Reader 9
    AcroRead.msi
    then i re-started my laptop and tried to re-install Adobe Reader X (10.1.3) but i am still getting the same download timeout error message, where am i going wrong?
    could you please help ?
    thank you
    kas

    Try downloading the offline installer from
    http://get.adobe.com/reader/enterprise/

  • ViClose session not called after Read operation Timeout in an IVI COM driver

    Hi everybody
    I have a small VI sample that is initializaing an IVI COM driver for an OPM instrument, set some parameters into the instrument then is doing a single Read power measurement. My Read operation receives a single parameter called MaxTimeout that user could change depending on his own interest. Inside the Read function I change temporarily the VISA query timeout to user timeout but at the end of Read operation the original VISA session timeout is reverted to its original value before Read operation was called. If the Read operation timeout is long enough for the Read operation to complete ( 100 ms or more) the VI is doing its job and when finished the viClose is called twice for DefaultHandler and for OpenHandler.
    If the Read operation timeout value decrease ( 50 ms) then Read operation could not be completed and a Read Operation Timeout error is thrown from inside this method. This error is then propagated trough Error path until the VI end in a Simple Error Handler. Now on my VI I close all open references to my driver interfaces but I don't know why VISA itself is not calling viClose on the DefaultHandler and OpenHandler as in the case when was no VI error. I could see all these diferences in my NI Spy window and I could post this if that could be of any help. Bear with me cause I am more a C, C++, VB programmer and much less of a LabVIEW programmer. BTW the Error Handling from LabVIEW looks a a little weird and the only sure thing is that I wired in Error In and Error Out path in all my VI calls. What kind of error handling should I perform on the Read method in order for VISA to close properly both OpenHandlers even if there is an error in my VI?
    Thansk
    sorinvalea

    So viClose is not called by VISA after an error takes place in a VI that is calling some operations on an IVI COM driver.
    I discovered that all VI sessions opened trough VI that encountered a timeout error in Read operation and that were not properly closed after VI completed are in fact viClose by the LabView itself when I am closing LabVIEW application.
    So these left over open vi sessions are kept aside by LabVIEW until it closes itself and then clean them one by one by calling viClose on them....

Maybe you are looking for

  • FRM-41211 SSL-Failure From Forms

    I have a Reports/Forms problem when running run_product from within Forms in a loop (for i in a..b loop run_product(i) end loop) for generating emails or faxes using MS Outlook starting with the second report. Error message "FRM-41211 SSL-Failure..."

  • XSERVE RAID - Powercut!

    HI folks, Earlier today I had a very brief powercut. When I went to the server room, my XSERVE RAID connected to my XSERVE was starting up again. However I noticed that the disc activity lights on right side of the XSERVE were off. The green light fo

  • Very urgent duty in stock

    Hi All I have query duty in stock in this report material are showing in the letters and kg for example -1234 material is showing in letters and kg also my user wants to see the report only in leaters.And one more thing is that in R/3 data source bac

  • Need help for filterFunction with special char

    Hi, I'm doing a simple search/filter process to a dataGrid collection upon text inputs with filterFunction. What I'm facing problem is, in one of my column field (on which I'm filtering) has dot "." as a suffix and it doesn't includes in the search p

  • Reverse Journal entry

    Hi, One of my colleague posted a journal entry without cost center and with profit center.   And now trying to reverse that journal entry.  But he is getting the error message " Account xxxxxxxx requires an assignment to CO object". Can any one pleas