Search

Class PowerShellSession

Extends java.lang.Object
Represents a session to the remote PowerShell machine, that can be used to run scripts and Cmdlets. Also users can benefit from the pipeline concept by demarcating pipeline boundaries with startPipeline() and endPipeline()

Attributes

None

Methods

Name Returns
addCommand(PowerShellCommand command) void
addCommandFromString(String command) PowerShellCommand
getSessionId() String
invokePipeline() PowerShellInvocationResult
invokeScript(String script) PowerShellInvocationResult

Returned by

Method Returns
PowerShellHost.getSession(String sessionId) PowerShellSession
PowerShellHost.openSession() PowerShellSession
PowerShellHost.openSessionAs(String name, String password) PowerShellSession

Referenced in

None