Partager via


GetCimSessionCommand.ComputerName Property

Definition

The following is the definition of the input parameter "ComputerName". Specifies one or more connections by providing their ComputerName(s). The Cmdlet then gets CimSession(s) opened with those connections. This parameter is an alternative to using CimSession(s) that also identifies the remote computer(s).

This is the only optional parameter of the Cmdlet. If not provided, the Cmdlet returns all CimSession(s) live/active in the runspace.

If an instance of CimSession is pipelined to Get-CimSession, the ComputerName property of the instance is bound by name with this parameter.

public string[] ComputerName { get; set; }
[System.Management.Automation.Alias(new System.String[] { "CN", "ServerName" })]
[System.Management.Automation.Parameter(ParameterSetName="ComputerNameSet", Position=0, ValueFromPipelineByPropertyName=true)]
public string[] ComputerName { get; set; }
member this.ComputerName : string[] with get, set
[<System.Management.Automation.Alias(new System.String[] { "CN", "ServerName" })>]
[<System.Management.Automation.Parameter(ParameterSetName="ComputerNameSet", Position=0, ValueFromPipelineByPropertyName=true)>]
member this.ComputerName : string[] with get, set
Public Property ComputerName As String()

Property Value

String[]
Attributes

Applies to