• Stars
    star
    527
  • Rank 81,009 (Top 2 %)
  • Language
    PowerShell
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console and allowing throttling on the jobs.

PoshRSJob 1.7.4.4

Build status Join the chat at https://gitter.im/proxb/PoshRSJob

Provides an alternative to PSjobs with greater performance and less overhead to run commands in the background, freeing up the console.

Be sure to check out and contribute to the Wiki!

Download and install PoshRSJob from the PowerShellGallery using PowerShell:

Install-Module -Name PoshRSJob

Download the latest release (1.7.4.4)

https://github.com/proxb/PoshRSJob/releases/download/1.7.4.4/PoshRSJob.zip

More information and examples here: http://learn-powershell.net/2015/04/19/latest-updates-to-poshrsjob/

Older post with some legacy examples found here: http://learn-powershell.net/2015/03/31/introducing-poshrsjob-as-an-alternative-to-powershell-jobs/

Now working on Linux/MacOS with PowerShell Core!

alt tag

Examples

=================

$Test = 'test'
$Something = 1..10
1..5|start-rsjob -Name {$_} -ScriptBlock {
        [pscustomobject]@{
            Result=($_*2)
            Test=$Using:Test
            Something=$Using:Something
        }
}            
Get-RSjob | Receive-RSJob

alt tag

This shows the streaming aspect with Wait-RSJob

1..10|Start-RSJob {
    if (1 -BAND $_){
        "First ($_)"
    }Else{
        Start-sleep -seconds 2
        "Last ($_)"
    }
}|Wait-RSJob|Receive-RSJob|ForEach{"I am $($_)"}

alt tag

Nano Support for PoshRSJob

alt tag

More Repositories

1

PoshWSUS

PowerShell module to manage Windows Server Update Services (WSUS)
PowerShell
231
star
2

PoshPAIG

PowerShell UI used for auditing and installing updates from WSUS to local and remote systems
PowerShell
205
star
3

PowerShell_Scripts

Miscellaneous scripts for things that I have done; more scripts will arrive as I get time to update this repo.
PowerShell
198
star
4

PoshPrivilege

Manage user privileges on a local machine or view applied privileges on local or remote system
PowerShell
100
star
5

RegExHelper

A UI to help with writing Regular Expressions.
PowerShell
71
star
6

ServerInventoryReport

A set of scripts to create an inventory report using PowerShell, SQL and WPF
PowerShell
64
star
7

PoshChat

Chat server and client made with PowerShell
PowerShell
57
star
8

PInvoke

One-off scripts that I have written involving PInvoke and PowerShell
PowerShell
40
star
9

PoshCharts

Module designed to make working with .Net Chart Controls easier
31
star
10

AsyncFunctions

Various functions that make use of *Async .Net methods to perform operations in bulk faster.
PowerShell
22
star
11

SquarifiedTreemap

Code to generate a squarified treemap UI for data visualization
PowerShell
22
star
12

Presentations

Presentations from various talks that I have given
PowerShell
18
star
13

PoshEventUI

UI used to manage Permanent WMI Event Consumers
PowerShell
13
star
14

PoshUSNJournal

A PowerShell module to manage and view the USN Journal
PowerShell
13
star
15

PinnedItem

PowerShell module to support pinning items to the Taskbar and Start Menu
PowerShell
12
star
16

ISEMenuAddOns

Collection of ISE Menu Add-Ons that I have written
PowerShell
11
star
17

PoshDesktop

PowerShell module used to create and switch to different desktops
PowerShell
8
star
18

WSUSReport

Random code snippets
PowerShell
6
star
19

IEFavorites

A module that allows you to add/remove IE favorites using PowerShell
PowerShell
4
star
20

OmahaPowerShellUserGroup

Collection of slides and demo code from presenters
3
star
21

SQL

Various scripts and modules that I have written to support SQL
2
star
22

PoshOpenShareFile

Module used to located open shared files and close the files as well on local and remote systems.
2
star
23

DSC

Desired State Configuration contributions
1
star