NewCimInstanceCommand Class
This cmdlet creates an instance of a CIM class based on the class definition.
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.NewCimInstanceCommand
Syntax
[CmdletAttribute("New", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227963")]
[OutputTypeAttribute(new Type[] { ... })]
public class NewCimInstanceCommand : CimBaseCommand
[CmdletAttribute("New", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227963")]
[OutputTypeAttribute(new array<Type^>^ { ... })]
public ref class NewCimInstanceCommand : CimBaseCommand
[<CmdletAttribute("New", "CimInstance", DefaultParameterSetName = "ClassNameComputerSet",
SupportsShouldProcess = true, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227963")>]
[<OutputTypeAttribute([| ... |])>]
type NewCimInstanceCommand =
class
inherit CimBaseCommand
end
<CmdletAttribute("New", "CimInstance", DefaultParameterSetName := "ClassNameComputerSet",
SupportsShouldProcess := True, HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227963")>
<OutputTypeAttribute(New Type() { ... })>
Public Class NewCimInstanceCommand
Inherits CimBaseCommand
Constructors
Name | Description | |
---|---|---|
NewCimInstanceCommand() | This cmdlet creates an instance of a CIM class based on the class definition, which is an instance factory. |
Properties
Name | Description | |
---|---|---|
CimClass | Gets and sets the CimClass parameter. |
|
CimSession | Gets and sets the CimSession parameter, which specifies the CimSession to use for creating the instances. |
|
ClassName | Gets and sets the ClassName parameter, which specifies the name of the class to use to create the instance. |
|
ClientOnly | Gets and sets the ClientOnly parameter. When set, this switch indicates that a CimInstance object is to be created only on the client, and not on the server. |
|
CommandOrigin | (Inherited from InternalCommand.) |
|
CommandRuntime | (Inherited from Cmdlet.) |
|
ComputerName | Gets and sets the ComputerName parameter, which provides the name of the computer from which to create the instances. If no computer name is specified, it defaults to the local host. |
|
CurrentPSTransaction | (Inherited from Cmdlet.) |
|
Key | Gets and sets the Key parameter, which enables the user to specify a list of key property names. Example: -Key {"K1", "K2"}. |
|
Namespace | Gets and sets the Namespace parameter, which specifies the namespace of the class for the new instance. The default namespace is root/cimv2. |
|
OperationTimeoutSec | Gets and sets the OperationTimeoutSec parameter, which specifies the operation timeout of the cmdlet in seconds. This setting overrides the value in the CIM session. |
|
Property | Gets and sets the Property parameter, which enables the user to specify instances with specific property values. Example: -Property @{P1="Value1";P2="Value2"}. |
|
ResourceUri | Gets and sets the ResourceUri parameter, which defines the resource URI for which the instances are retrieved. |
|
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