Share via


GetCimInstanceCommand.ComputerName Property

 

Gets and sets the ComputerName parameter, which specifies the name of the computer from which to retrieve the instances. The name is used to create a temporary CimSession with default parameter values, which is then used to retrieve the instances. If this parameter isn't set, then the default value is "localhost".

Namespace:   Microsoft.Management.Infrastructure.CimCmdlets
Assembly:  Microsoft.Management.Infrastructure.CimCmdlets (in Microsoft.Management.Infrastructure.CimCmdlets.dll)

Syntax

[AliasAttribute(new string[] { ... })]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ParameterSetName = "CimInstanceComputerSet")]
public string[] ComputerName { get; set; }
public:
[AliasAttribute(new array<String^>^ { ... })]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")]
[ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")]
[ParameterAttribute(ParameterSetName = "CimInstanceComputerSet")]
property array<String^>^ ComputerName {
    array<String^>^ get();
    void set(array<String^>^ value);
}
[<AliasAttribute([| ... |])>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ClassNameComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "ResourceUriComputerSet")>]
[<ParameterAttribute(ValueFromPipelineByPropertyName = true, ParameterSetName = "QueryComputerSet")>]
[<ParameterAttribute(ParameterSetName = "CimInstanceComputerSet")>]
member ComputerName : string[] with get, set
<AliasAttribute(New String() { ... })>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ClassNameComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "ResourceUriComputerSet")>
<ParameterAttribute(ValueFromPipelineByPropertyName := True, ParameterSetName := "QueryComputerSet")>
<ParameterAttribute(ParameterSetName := "CimInstanceComputerSet")>
Public Property ComputerName As String()

Property Value

Type: System.String[]

Returns String.

See Also

GetCimInstanceCommand Class
Microsoft.Management.Infrastructure.CimCmdlets Namespace

Return to top