InvokeCimMethodCommand Class
This cmdlet enables the user to invoke a static method on a CIM class using the arguments passed as name-value pairs.
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.InvokeCimMethodCommand
Syntax
[CmdletAttribute("Invoke", "CimMethod", SupportsShouldProcess = true,
DefaultParameterSetName = "ClassNameComputerSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227965")]
public class InvokeCimMethodCommand : CimBaseCommand
[CmdletAttribute("Invoke", "CimMethod", SupportsShouldProcess = true,
DefaultParameterSetName = "ClassNameComputerSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227965")]
public ref class InvokeCimMethodCommand : CimBaseCommand
[<CmdletAttribute("Invoke", "CimMethod", SupportsShouldProcess = true,
DefaultParameterSetName = "ClassNameComputerSet", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227965")>]
type InvokeCimMethodCommand =
class
inherit CimBaseCommand
end
<CmdletAttribute("Invoke", "CimMethod", SupportsShouldProcess := True,
DefaultParameterSetName := "ClassNameComputerSet", HelpUri := "https://go.microsoft.com/fwlink/?LinkId=227965")>
Public Class InvokeCimMethodCommand
Inherits CimBaseCommand
Constructors
Name | Description | |
---|---|---|
InvokeCimMethodCommand() | This cmdlet enables the user to invoke a static method on a CIM class using the arguments passed in the form of name-value pairs. |
Properties
Name | Description | |
---|---|---|
Arguments | Gets and sets the Arguments parameter, which specifies the parameter arguments for the static method in the form of name value pairs. |
|
CimClass | Gets and sets the CimClass parameter, which specifies the class to use for invoking static methods. |
|
CimSession | Gets and sets the CimSession parameter, which identifies the session to use for retrieving the instances. |
|
ClassName | Gets and sets the ClassName parameter, which specifies the name of the class to use for invoking static methods. |
|
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 invoke the method. The computer name is used to create a temporary CimSession with default parameter values, which is then used to retrieve the instances. |
|
CurrentPSTransaction | (Inherited from Cmdlet.) |
|
InputObject | Gets and sets the parameter InputObject, which takes a CimInstance object retrieved by a Get-CimInstance call. |
|
MethodName | Gets and sets the MethodName parameter, which is the name of the static method to use. |
|
Namespace | Gets and sets the Namespace parameter. |
|
OperationTimeoutSec | Sets and gets the OperationTimeoutSec parameter, which enables the user to specify the operation timeout in seconds. |
|
Query | Gets and sets the Query parameter, which specifies the CimClass object to use for invoking static methods. |
|
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. |
|
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