< Back

Get-PSFRunspace

Sun Jan 19, 2020 6:40 pm

NAME Get-PSFRunspace



SYNOPSIS

Returns registered runspaces.





SYNTAX

Get-PSFRunspace [[-Name] <String>] [<CommonParameters>]





DESCRIPTION

Returns a list of runspaces that have been registered with the PSFramework





PARAMETERS

-Name <String>

Default: "*"

Only registered runspaces of similar names are returned.



Required? false

Position? 1

Default value *

Accept pipeline input? false

Accept wildcard characters? 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



OUTPUTS



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-PSFRunspace



Returns all registered runspaces









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-PSFRunspace -Name 'mymodule.maintenance'



Returns the runspace registered under the name 'mymodule.maintenance'











RELATED LINKS