RSJobs stuck at Remaining Jobs: 1

I have a recurring issue where RSJobs Tracker reports “Remaining Jobs: 1” for an extremely long time compared to the rest of the process. Is this a regular issue or more related to my own script? I noticed the same issue when I tested with 100 systems… hanging for a very long time with 1 job remaining. It did eventually finish, but 24+ hours seems like a long time for 1000 systems (not all online hosts).

Get-Content E:tempadcomputers.csv -TotalCount 1000) -Name {"$_"} -FunctionsToLoad "Get-Processes" -ScriptBlock {Get-Processes $_ -DLLs -Services} | Wait-RSJob -ShowProgress | Receive-RSJob | export-csv e:tempGet-Processes_ad1000.csv -NoTypeInformation 

I will wait until the end of today and then kill the script and use a job monitor someone else shared in this thread

https://www.reddit.com/r/PowerShell/comments/40i4pp/is_there_a_better_way_to_do_thisjobs_and_wmi/cyukyfu/

submitted by /u/random23432d
[link] [comments]

Leave a Reply