Showing results for Runspace - Scripting Blog [archived]

Nov 29, 2015
0
0

PowerTip: Update Module from PowerShell Gallery

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to update a module from the Windows PowerShell Gallery. How can I update a module from the Windows PowerShell Gallery? Run the following command to check for an update to the module and install the update if one is found:Update-Module –Name PoshRSJob –VerboseVERBOSE: Checking for updates for module ...

Scripting Guy!Windows PowerShellPowerTip
Nov 29, 2015
0
0

Weekend Scripter: A Look at the PoshRSJob Module

Doctor Scripto
Doctor Scripto

Summary: Boe Prox presents a module for working with runspaces. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. Today I finish up my series about using runspaces in PowerShell by showing you a module that I put together that makes working with runspaces a lot ...

Scripting Guy!Windows PowerShellguest blogger
Nov 28, 2015
0
0

PowerTip: Add Custom Function to Runspace Pool

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how to add a custom function to a runspace pool. How can I use Windows PowerShell to add a custom function to a runspace pool? Use the following approach:#Custom FunctionFunction ConvertTo-Hex {    Param([int]$Number)    '0x{0:x}' -f $Number}#Get body of function$Definition = Get-Conte...

Scripting Guy!Windows PowerShellPowerTip
Nov 28, 2015
8
0

Beginning Use of PowerShell Runspaces: Part 3

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows us some tips about using runspace pools for multithreading. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, The Scripting Guy. Note   This is a four-part series that includes the following posts: After spending the past couple of d...

Scripting Guy!Windows PowerShellguest blogger
Nov 27, 2015
0
0

PowerTip: Get the Async Object Created by BeginInvoke

Doctor Scripto
Doctor Scripto

Summary: Boe Prox shows how retrieve a seemingly lost Async object from a runspace. How can I get the seemingly lost Async object created by BeginInvoke? Use Reflection to pull this information out of a Runspace object and get the Async object, which is required            to use with...

Scripting Guy!Windows PowerShellPowerTip