PowerShell Logo Small

New-PSWorkflowSession



This is the built-in help made by Microsoft for the command 'New-PSWorkflowSession', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Creates a workflow session.

SYNTAX


New-PSWorkflowSession [[-ComputerName] <String[]>] [-ApplicationName <String>] [-Authentication {Default | Basic | Negotiate | NegotiateWithImplicitCredential | Credssp |
Digest | Kerberos}] [-CertificateThumbprint <String>] [-Credential <Object>] [-EnableNetworkAccess] [-Name <String[]>] [-Port <Int32>] [-SessionOption <PSSessionOption>]
[-ThrottleLimit <Int32>] [-UseSSL] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The New-PSWorkflowSession cmdlet creates a user-managed session ("PSSession") that is especially designed for running Windows PowerShell workflows. It uses the
Microsoft.PowerShell.Workflow session configuration, which includes scripts, type and formatting files, and options that are required for workflows.


You can use "New-PSWorkflowSession" or its alias, nwsn.


You can also add workflow common parameters to this command. For more information about workflow common parameters, see about_WorkflowCommonParameters.


This cmdlet is introduced in Windows PowerShell 3.0.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287542
New-PSSession
New-PSTransportOption
Register-PSSessionConfiguration
about_PSSessions
about_Session_Configurations
about_Workflows
about_WorkflowCommonParameters
PSWorkflow Module
PSWorkflowUtility Module



REMARKS

<

Examples


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

PS C:\>New-PSWorkflowSession -ComputerName ServerNode01 -Name WorkflowTests -SessionOption (New-PSSessionOption -OutputBufferingMode Drop)



This command creates the WorkflowTests session on the ServerNode01 remote computer. The value of the SessionOption parameter is a New-PSSessionOption command that sets the
output buffering mode in the session to Drop.




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

PS C:\>"ServerNode01", "Server12" | New-PSWorkflowSession -Name WorkflowSession -Credential Domain01\Admin01 -ThrottleLimit 150



This command creates workflow sessions on the ServerNode01 and Server12 computers. The command uses the Credential parameter to run with the permissions of the domain
administrator.

The command uses the ThrottleLimit parameter to increase the per-command throttle limit to 150. This value takes precedence over the default throttle limit of 100 that is
set in the Microsoft.PowerShell.Workflow session configuration.