< Back

New-InvokeAllRunspacePool

Wed Jan 15, 2020 7:16 am

NAME New-InvokeAllRunspacePool



SYNTAX

New-InvokeAllRunspacePool -CommandName <string> [-MaxThreads <int>] [-ModulestoLoad <string[]>] [-PSSnapInsToLoad

<string[]>] [-CopyLocalVariables] [<CommonParameters>]



New-InvokeAllRunspacePool -CommandName <string> [-MaxThreads <int>] [-RemotePSSessionToUse <psobject>]

[-LoadAllTypeDatas] [<CommonParameters>]





PARAMETERS

-CommandName <string>

Runspacepool will be loaded with settings that are required to run this Command



Required? true

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-CopyLocalVariables

Copies the local powershell variable names and its values to the Runspace. DON'T modify or loop through

variables on the jobs as they are not thread-safe



Required? false

Position? Named

Accept pipeline input? false

Parameter set name Default

Aliases None

Dynamic? false



-LoadAllTypeDatas

When specified, The typedata is not loaded in to the RunspacePool, Specify if loading typedata is delaying the

creation of RunspacePool



Required? false

Position? Named

Accept pipeline input? false

Parameter set name RemotePS

Aliases None

Dynamic? false



-MaxThreads <int>

Number of threads to be executed in parallel, by default one thread per logical CPU



Required? false

Position? Named

Accept pipeline input? false

Parameter set name (All)

Aliases None

Dynamic? false



-ModulestoLoad <string[]>

Name of PS Modules or the Full path of the Modules (comma seperated) to load in to the Runspace for the

command to work. Specifiy 'All' to load all the possible modules or 'Loaded' to load the currently loaded

modules



Required? false

Position? Named

Accept pipeline input? false

Parameter set name Default

Aliases None

Dynamic? false



-PSSnapInsToLoad <string[]>

Name of PSSnapins (comma seperated) to load in to the Runspace for the command to work.



Required? false

Position? Named

Accept pipeline input? false

Parameter set name Default

Aliases None

Dynamic? false



-RemotePSSessionToUse <psobject>

When specified, Remote Runspace opened on the host will be used



Required? false

Position? Named

Accept pipeline input? false

Parameter set name RemotePS

Aliases None

Dynamic? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).





INPUTS

None





OUTPUTS

System.Management.Automation.PSObject





ALIASES

None





REMARKS

None