RAM runs out

已回覆

評論

3 條評論

  • 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
    評論操作 永久連結
  • 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
    評論操作 永久連結
  • 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
    評論操作 永久連結

登入寫評論。