RAM runs out

Answered

Comments

3 comments

  • Avatar
    AgilePoint NX Support

    Christopher,

     

    What type of actions are you performing inside the powershell script?

    Are you releasing the variables and resource which you had used inside the powershell?

     

    Regards,

     AgilePoint NX Support

    0
    Comment actions Permalink
  • Avatar
    Christopher Lauss

    I've three scripts in my process, some of them are running parallel:

    1: Gets data (LogInNames) from a Sharepoint list entry (e.g. Team members (=PeoplePicker))

    2: Write AD users and groupmenbers to a string

    3: Write the string from script 2 (domain\LogInName) in an extra column  (e.g. Team members resolved (=People Picker))

     

    I tried with Remove-Variable -Name var1,var2,.... but there is no difference. 

     

    0
    Comment actions Permalink
  • Avatar
    Christopher Lauss

    I've solved the problem.

    This powershells are remote powershells. I opened a session and didn't close it.
    With the command "Remove-PSSession -Session $sess" at the end of the call it works.

    0
    Comment actions Permalink

Please sign in to leave a comment.