Welcome to Powergui.org - an open source community for Windows Powershell

PowerGUI.org PowerGUI.org and blogs

Forums » Active Directory and PowerShell

Thread: "Insufficient memory to continue the execution of the program." Error

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 4 - Pages: 1 - Last Post: Nov 20, 2009 8:30 AM by: dave_seifert_375
dave_seifert_375

Posts: 7
Registered: 11/11/09
"Insufficient memory to continue the execution of the program." Error
Posted: Nov 11, 2009 3:38 AM
 
  Click to reply to this thread Reply

I am running the following script to return all group members for all groups on our domain:

Get-QADGroup -Empty $false -SizeLimit 0 | Foreach-Object{

$GroupName = $_.NameGet-QADGroupMember

$GroupName -SizeLimit 0 | Select-Object @{n="GroupName";e={$GroupName}}, saMAccountName, Name

} | Out-File -Width 1000 c:\test.txt

I am getting the following error:

Select-Object : Exception getting "Name": "Insufficient memory to continue the execution of the program."
At C:\powershell\Get_All_HMIS_GroupMembers.PS1:5 char:64
+      Get-QADGroupMember $GroupName -SizeLimit 0 | Select-Object  <<<< @{n="GroupName";e={$GroupName}}, saMAccountName, Name

Has anyone else received this error?  If so, how did you resolve it?  Thank you!




Andrey Moiseev (Quest)

Posts: 415
Registered: 9/4/07
Re: "Insufficient memory to continue the execution of the program." Error
Posted: Nov 12, 2009 12:26 AM   in response to: dave_seifert_375
 
  Click to reply to this thread Reply

What version of AD cmdlets you're using?


dave_seifert_375

Posts: 7
Registered: 11/11/09
Re: "Insufficient memory to continue the execution of the program." Error
Posted: Nov 17, 2009 3:29 AM   in response to: Andrey Moiseev ...
 
  Click to reply to this thread Reply

1.2.2.1254.


Andrey Moiseev (Quest)

Posts: 415
Registered: 9/4/07
Re: "Insufficient memory to continue the execution of the program." Error
Posted: Nov 20, 2009 5:25 AM   in response to: dave_seifert_375
 
  Click to reply to this thread Reply

I wasn't able to reproduce this issue in my environment. How many groups and users do you have in your environment?




dave_seifert_375

Posts: 7
Registered: 11/11/09
Re: "Insufficient memory to continue the execution of the program." Error
Posted: Nov 20, 2009 8:30 AM   in response to: Andrey Moiseev ...
 
  Click to reply to this thread Reply

We have 1099 groups and 7814 users.


Legend
MVP: 2501 + pts
Guru: 2001 - 2500 pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums