GetCimInstanceCommand Class
Returns zero or more dynamic CIM instances with the properties specified in the Property parameter, the KeysOnly parameter, or the SELECT clause of the Query parameter.
Namespace: Microsoft.Management.Infrastructure.CimCmdlets
Assembly: Microsoft.Management.Infrastructure.CimCmdlets (in Microsoft.Management.Infrastructure.CimCmdlets.dll)
Inheritance Hierarchy
System.Object
System.Management.Automation.Internal.InternalCommand
System.Management.Automation.Cmdlet
Microsoft.Management.Infrastructure.CimCmdlets.CimBaseCommand
Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand
Syntax
[CmdletAttribute("Get", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227961")]
[OutputTypeAttribute(new Type[] { ... })]
public class GetCimInstanceCommand : CimBaseCommand
[CmdletAttribute("Get", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227961")]
[OutputTypeAttribute(new array<Type^>^ { ... })]
public ref class GetCimInstanceCommand : CimBaseCommand
[<CmdletAttribute("Get", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227961")>]
[<OutputTypeAttribute([| ... |])>]
type GetCimInstanceCommand =
class
inherit CimBaseCommand
end
<CmdletAttribute("Get", "CimInstance", DefaultParameterSetName := "ClassNameComputerSet",
HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227961")>
<OutputTypeAttribute(New Type() { ... })>
Public Class GetCimInstanceCommand
Inherits CimBaseCommand
Constructors
Name | Description | |
---|---|---|
GetCimInstanceCommand() | Constructor for the GetCimInstanceCommand class, which provides zero or more CIM instances with the properties specified in the Property parameter, KeysOnly parameter, or the SELECT clause of the Query parameter. |
Properties
Name | Description | |
---|---|---|
CimSession | Gets and sets the CimSession parameter, which identifies the CimSession to be used to retrieve the instances. |
|
ClassName | Gets and sets the ClassName parameter, which specifies the type of CIM instances to retrieve. |
|
CommandOrigin | (Inherited from InternalCommand.) |
|
CommandRuntime | (Inherited from Cmdlet.) |
|
ComputerName | 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". |
|
CurrentPSTransaction | (Inherited from Cmdlet.) |
|
Filter | Gets and sets the Filter property, which specifies the WHERE close of the query. |
|
InputObject | Gets and sets the InputObject parameter, which is the CimInstance object that contains the key properties. |
|
KeyOnly | Gets and sets the KeyOnly parameter, which indicates whether only key properties of the retrieved instances should be returned to the client. |
|
Namespace | Gets and sets the Namespace parameter, which identifies the namespace in which the class, indicated by ClassName, is registered. If this property isn't set, the default namespace is root\cimv2. |
|
OperationTimeoutSec | Gets and sets the OperationTimeoutSec parameter, which specifies the timeout after which the client operation is to be canceled. |
|
Property | Gets and sets the Property parameter, which enables the user to specify instances with specific property values. Example: -Property @{P1="Value1";P2="Value2"} |
|
Query | Gets and sets the Query parameter, which determines the instances and properties to retrieve. |
|
QueryDialect | Gets and sets the QueryDialect parameter, which specifies the dialect used by the query engine that interprets the query string. |
|
ResourceUri | Gets and sets the ResourceUri parameter, which defines the resource URI for which the instances are retrieved. |
|
Shallow | Gets and sets the switch parameter Shallow. If the switch is set to True, only the instance of the class identified by Namespace and ClassName will be returned. If the switch is not set, instances of the class and of all of its descendents will be returned (the enumeration will cascade the class inheritance hierarchy). |
|
Stopping | (Inherited from Cmdlet.) |
Methods
Thread Safety
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
Microsoft.Management.Infrastructure.CimCmdlets Namespace
Return to top