Share via


GetCimInstanceCommand.ComputerName Property

Definition

The following is the definition of the input parameter "ComputerName". Provides the name of the computer from which to retrieve the instances. The ComputerName is used to create a temporary CimSession with default parameter values, which is then used to retrieve the instances.

If no ComputerName is specified the default value is "localhost"

public string[] ComputerName { get; set; }
[System.Management.Automation.Alias(new System.String[] { "CN", "ServerName" })]
[System.Management.Automation.Parameter(ParameterSetName="ClassNameComputerSet", ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(ParameterSetName="ResourceUriComputerSet", ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(ParameterSetName="QueryComputerSet", ValueFromPipelineByPropertyName=true)]
[System.Management.Automation.Parameter(ParameterSetName="CimInstanceComputerSet")]
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="ClassNameComputerSet", ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(ParameterSetName="ResourceUriComputerSet", ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(ParameterSetName="QueryComputerSet", ValueFromPipelineByPropertyName=true)>]
[<System.Management.Automation.Parameter(ParameterSetName="CimInstanceComputerSet")>]
member this.ComputerName : string[] with get, set
Public Property ComputerName As String()

Property Value

String[]
Attributes

Applies to