Windows Dev Center

NewPSSessionCommand Class

The New-PSSession cmdlet class that is implemented by Windows PowerShell. This class is included in this SDK for completeness only. The members of this class cannot be used directly, nor should this class be used to derive other classes.


Namespace: Microsoft.PowerShell.Commands
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As NewPSSessionCommand

[OutputTypeAttribute(System.Compiler.TypeNode[])] 
[CmdletAttribute("New", "PSSession", DefaultParameterSetName="ComputerName", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135237", RemotingCapability=RemotingCapability.OwnedByCommand)] 
public class NewPSSessionCommand : PSRemotingBaseCmdlet, IDisposable
/** @attribute OutputTypeAttribute(System.Compiler.TypeNode[]) */ 
/** @attribute CmdletAttribute("New", "PSSession", DefaultParameterSetName="ComputerName", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135237", RemotingCapability=RemotingCapability.OwnedByCommand) */ 
public class NewPSSessionCommand extends PSRemotingBaseCmdlet implements IDisposable
OutputTypeAttribute(System.Compiler.TypeNode[]) 
CmdletAttribute("New", "PSSession", DefaultParameterSetName="ComputerName", HelpUri="http://go.microsoft.com/fwlink/?LinkID=135237", RemotingCapability=RemotingCapability.OwnedByCommand) 
public class NewPSSessionCommand extends PSRemotingBaseCmdlet implements IDisposable

This cmdlet creates a persistent connection to a local or remote computer. For more information about this cmdlet, see New-PSSession in the Microsoft TechNet library.

For Help at the command line, type:

get-help new-pssession


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show:
© 2015 Microsoft