Even as admin it did take quite a while to finish.  Personally I'd use:

Net group /domain groupname and pipe it to a file.  That does however push a 3 
column output list so that may not work for what you're doing.

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

From: listsad...@lists.myitforum.com [mailto:listsad...@lists.myitforum.com] On 
Behalf Of Heaton, Joseph@Wildlife
Sent: Thursday, June 9, 2016 1:50 PM
To: scripting@lists.myitforum.com
Subject: RE: [scripting] Simple query timing out

I ran it as admin.  I'm also not the only one in my group that this is 
happening to, either.  And happens if I run it from my workstation, or directly 
from a server.

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Melvin Backus
Sent: Thursday, June 09, 2016 9:26 AM
To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com>
Subject: RE: [scripting] Simple query timing out

Hmm, I had to run it as administrator to make it work for me. Same timeout in 
normal session.

--
There are 10 kinds of people in the world...
         those who understand binary and those who don't.

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of its.mike
Sent: Thursday, June 9, 2016 11:23 AM
To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com>
Subject: RE: [scripting] Simple query timing out

Maybe there's something wonky... can you enum the group thru' non-powershell 
means?

For example, from a cmd.exe prompt:  echo 
"<distinguishedNameForTheGroupYouAreLookingAt>" | dsget group -members -expand

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Heaton, Joseph@Wildlife
Sent: Thursday, June 9, 2016 7:55 am
To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com>
Subject: RE: [scripting] Simple query timing out

Only a couple hundred members.

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Daniel
Sent: Wednesday, June 08, 2016 2:16 PM
To: scripting@lists.myitforum.com<mailto:scripting@lists.myitforum.com>
Subject: RE: [scripting] Simple query timing out

My first thought is "how stinkin' large is this group anyway?"

If the size of the group is causing enumeration to take too long, divide and 
conquer.

From: listsad...@lists.myitforum.com<mailto:listsad...@lists.myitforum.com> 
[mailto:listsad...@lists.myitforum.com] On Behalf Of Heaton, Joseph@Wildlife
Sent: Wednesday, June 08, 2016 10:01 AM
To: scripting@lists.myITforum.com<mailto:scripting@lists.myITforum.com>
Subject: [scripting] Simple query timing out

I'm trying to enumerate a group's membership, and export to a csv.  Here's my 
command:

Get-AdGroupMember -Identity "ProjectTracking_Users" | Select Name | export-csv 
c:\tracking.csv -NoTypeInfo

When I run this, it ends up timing out with this:

Get-ADGroupMember : The operation returned because the timeout limit was 
exceeded.
At line:1 char:1
+ Get-ADGroupMember -identity "ProjectTracking_Users" | Select Name | e ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationTimeout: (ProjectTracking_Users:ADGroup) 
[Get-ADGroupMember], TimeoutExceptio
   n
    + FullyQualifiedErrorId : The operation returned because the timeout limit 
was exceeded.,Microsoft.ActiveDirecto
   ry.Management.Commands.GetADGroupMember


I searched online, but the only thing that comes up is a size limit, not a 
timeout limit.  Any Ideas?

Thanks,

Joe Heaton
Information Technology Operations Branch
Data and Technology Division
CA Department of Fish and Wildlife
1700 9th Street, 3rd Floor
Sacramento, CA  95811
Desk:  (916) 323-1284

Every Californian should conserve water.  Find out how at:
[SaveOurWater_Logo]<http://saveourwater.com/>
SaveOurWater.com<http://saveourwater.com/> * 
Drought.CA.gov<http://drought.ca.gov/>










Reply via email to