Click or drag to resize
Galactic API

PowerShell Class

A collection of helper methods for using PowerShell.
Inheritance Hierarchy
SystemObject
  Galactic.PowerShellPowerShell

Namespace:  Galactic.PowerShell
Assembly:  Galactic.PowerShell (in Galactic.PowerShell.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static class PowerShell

The PowerShell type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateRunspaceConnectionInfo
Creates an object with the information necessary to create a connection for a Runspace or RunspacePool. Note: computerName and connectionURI are mutually exclusive. If both are provided, the computerName parameter will be used. computerName and connectionURI need only be supplied for remote connections. If neither are provided a configuration for a local connection using all defaults will be created.
Public methodStatic memberRunAsynchronously
Runs a PowerShell command/script asynchronously.
Public methodStatic memberRunSynchronously
Runs a PowerShell command/script synchronously.
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_APP_NAME
The default application name used when making a PowerShell connection.
Public fieldStatic memberDEFAULT_MAX_RUNSPACES_IN_POOL
The default maximum number of runspaces a pool can grow to during it's lifetime.
Public fieldStatic memberDEFAULT_MIN_RUNSPACES_IN_POOL
The default minimum number of runspaces initialized when a pool is created.
Public fieldStatic memberDEFAULT_OPEN_TIMEOUT_IN_SEC
The default length of time in seconds that a PowerShell connection has to open a connection before timing out.
Public fieldStatic memberDEFAULT_OPERATION_TIMEOUT_IN_SEC
The default length of time in seconds that a PowerShell operation has to complete before timing out.
Public fieldStatic memberDEFAULT_PORT_NUMBER
The default port number used by PowerShell connections.
Public fieldStatic memberDEFAULT_PORT_NUMBER_SSL
The default port number used by SSL based PowerShell connections.
Public fieldStatic memberDEFAULT_SHELL_URI
The default shell URI used by PowerShell connections.
Top
See Also