Share via


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
System_CAPS_pubmethod 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
System_CAPS_pubproperty Arguments

Gets and sets the Arguments parameter, which specifies the parameter arguments for the static method in the form of name value pairs.

System_CAPS_pubproperty CimClass

Gets and sets the CimClass parameter, which specifies the class to use for invoking static methods.

System_CAPS_pubproperty CimSession

Gets and sets the CimSession parameter, which identifies the session to use for retrieving the instances.

System_CAPS_pubproperty ClassName

Gets and sets the ClassName parameter, which specifies the name of the class to use for invoking static methods.

System_CAPS_pubproperty CommandOrigin

(Inherited from InternalCommand.)

System_CAPS_pubproperty CommandRuntime

(Inherited from Cmdlet.)

System_CAPS_pubproperty 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.

System_CAPS_pubproperty CurrentPSTransaction

(Inherited from Cmdlet.)

System_CAPS_pubproperty InputObject

Gets and sets the parameter InputObject, which takes a CimInstance object retrieved by a Get-CimInstance call.

System_CAPS_pubproperty MethodName

Gets and sets the MethodName parameter, which is the name of the static method to use.

System_CAPS_pubproperty Namespace

Gets and sets the Namespace parameter.

System_CAPS_pubproperty OperationTimeoutSec

Sets and gets the OperationTimeoutSec parameter, which enables the user to specify the operation timeout in seconds.

System_CAPS_pubproperty Query

Gets and sets the Query parameter, which specifies the CimClass object to use for invoking static methods.

System_CAPS_pubproperty QueryDialect

Gets and sets the QueryDialect parameter, which specifies the dialect used by the query engine that interprets the query string.

System_CAPS_pubproperty ResourceUri

Gets and sets the ResourceUri parameter, which defines the resource URI for which the instances are retrieved.

System_CAPS_pubproperty Stopping

(Inherited from Cmdlet.)

Methods

Name Description
System_CAPS_protmethod BeginProcessing()

Provides a one-time, preprocessing functionality for the cmdlet.(Overrides Cmdlet.BeginProcessing().)

System_CAPS_pubmethod Dispose()

Releases resources.(Inherited from CimBaseCommand.)

System_CAPS_protmethod Dispose(Boolean)

Releases resources.(Inherited from CimBaseCommand.)

System_CAPS_protmethod DisposeInternal()

Disposes of all managed and unmanaged resources.(Inherited from CimBaseCommand.)

System_CAPS_protmethod EndProcessing()

EndProcessing method.(Overrides Cmdlet.EndProcessing().)

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetResourceString(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Invoke()

(Inherited from Cmdlet.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod ProcessRecord()

ProcessRecord method.(Overrides Cmdlet.ProcessRecord().)

System_CAPS_pubmethod ShouldContinue(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldContinue(String, String, Boolean, Boolean, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldContinue(String, String, Boolean, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String, String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ShouldProcess(String, String, String, ShouldProcessReason)

(Inherited from Cmdlet.)

System_CAPS_protmethod StopProcessing()

StopProcessing method.(Inherited from CimBaseCommand.)

System_CAPS_pubmethod ThrowTerminatingError(ErrorRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod TransactionAvailable()

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteCommandDetail(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteDebug(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteError(ErrorRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteInformation(InformationRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteInformation(Object, String[])

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteObject(Object)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteObject(Object, Boolean)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteProgress(ProgressRecord)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteVerbose(String)

(Inherited from Cmdlet.)

System_CAPS_pubmethod WriteWarning(String)

(Inherited from Cmdlet.)

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