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
    评论操作 固定链接

请先登录再写评论。