You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When you close PowerShell ISE, even if you've loaded a module, the process should and will disappear from Task Manager. If you simply open ISE, Import-Module PoshRSJob, and then exit the process will never disappear from Task Manager. I waited > 15 minutes so it's not a timer (or it's a very long timer!)
This happens on 1.7.3.5 and all the way back - even on 1.3.0.0 (which didn't load properly) it still caused ISE to be orphaned in the background. Also it happens on ISE x86 and x64 but it doesn't happen on either Console version. I tested on multiple PowerShell v5/v5.1 servers to be sure.
It seems to be caused by the two cleanup jobs in PoshRSJob.psm1. If you modify their two loops to exit after the first go then PowerShell ISE closes fine. This means that the .Flag properties they're checking which are set by $ExecutionContext.SessionState.Module.OnRemove aren't being triggered properly. But I'm not sure why or of a workaround.
Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
It appears this has always been the case, but, I don't know how I've never picked it up before (as I often looked for and killed orphaned sessions in case they were bugs in my scripts).
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
When you close PowerShell ISE, even if you've loaded a module, the process should and will disappear from Task Manager. If you simply open ISE, Import-Module PoshRSJob, and then exit the process will never disappear from Task Manager. I waited > 15 minutes so it's not a timer (or it's a very long timer!)
This happens on 1.7.3.5 and all the way back - even on 1.3.0.0 (which didn't load properly) it still caused ISE to be orphaned in the background. Also it happens on ISE x86 and x64 but it doesn't happen on either Console version. I tested on multiple PowerShell v5/v5.1 servers to be sure.
It seems to be caused by the two cleanup jobs in PoshRSJob.psm1. If you modify their two loops to exit after the first go then PowerShell ISE closes fine. This means that the .Flag properties they're checking which are set by $ExecutionContext.SessionState.Module.OnRemove aren't being triggered properly. But I'm not sure why or of a workaround.
Which versions of Powershell and which OS are affected by this issue? Did this work in previous versions of our scripts?
It appears this has always been the case, but, I don't know how I've never picked it up before (as I often looked for and killed orphaned sessions in case they were bugs in my scripts).
Windows Server 2012 R2.
The text was updated successfully, but these errors were encountered: