header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Powershell running out of memory?
Last Post 28 Jul 2010 01:24 AM by Shay Levy. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
RyanUser is Offline
New Member
New Member
Posts:3
Avatar

--
27 Jul 2010 12:26 PM
    I run the following to update our user's employeeID based off of email address:
    Import-Csv c:\users.csv | foreach { $employeeID = $_.employeeID Get-QADUser $_.email | Set-QADUser -ObjectAttributes @{employeeID=$employeeID} }

    After processing about 1100-1500 users, the script just quits, no error message, just ends.  Am I running out of memory?  Is there a way to handle that in Powershell?


    Thanks!
    Ryan
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    28 Jul 2010 01:24 AM
    Your script looks OK to me. How much memory powershell.exe is consuming? By the way, I know that there was a problem with memory leaks in previous version of QAD, there's a new version now (1.4) , consider upgrading and testing the code again.

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer