Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

InvokeWmiMethod Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Wraps the Invoke-WmiMethod cmdlet. Introduced in Windows PowerShell 3.0.

Namespace:   Microsoft.PowerShell.Activities
Assembly:  Microsoft.PowerShell.Activities (in Microsoft.PowerShell.Activities.dll)

System::Object
  System.Activities::Activity
    System.Activities::NativeActivity
      Microsoft.PowerShell.Activities::PipelineEnabledActivity
        Microsoft.PowerShell.Activities::PSActivity
          Microsoft.PowerShell.Activities::WmiActivity
            Microsoft.PowerShell.Activities::InvokeWmiMethod

public ref class InvokeWmiMethod sealed : WmiActivity

NameDescription
System_CAPS_pubmethodInvokeWmiMethod()

Initializes a new instance of the InvokeWmiMethod class. Introduced in Windows PowerShell 3.0.

NameDescription
System_CAPS_pubpropertyAppendOutput

Determines whether to append output to the stream specified by the Result property. Introduced in Windows PowerShell 3.0.(Inherited from PipelineEnabledActivity.)

System_CAPS_pubpropertyArgumentList

The collection of arguments to use when calling the method. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyAuthority

Specifies the authentication package to use to authenticate the WMI connection. You can specify standard NTLM or Kerberos authentication. To use NTLM, set the authority setting to ntlmdomain:DomainName, where DomainNameidentifies a valid NTLM domain name.

To use Kerberos, specify kerberosDomainName>\ServerName. You cannot include the authority setting when you connect to the local computer. Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_protpropertyCacheId

(Inherited from Activity.)

System_CAPS_pubpropertyClass

The name of the WMI class to use for static methods. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyDebug

Gets or sets a value that indicates whether to emit the debug output of the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyDisplayName

(Inherited from Activity.)

System_CAPS_pubpropertyEnableAllPrivileges

Enables all the privileges of the current user before the command makes the WMI call. Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyErrorAction

Gets or sets how errors are handled by the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyId

(Inherited from Activity.)

System_CAPS_pubpropertyImpersonation

Specifies the impersonation level to use. Valid values are: 0: Default (reads the local registry for the default impersonation level , which is usually set to "3: Impersonate".) 1: Anonymous (Hides the credentials of the caller.) 2: Identify (Allows objects to query the credentials of the caller.) 3: Impersonate (Allows objects to use the credentials of the caller.) 4: Delegate (Allows objects to permit other objects to use the credentials of the caller.) Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_protpropertyImplementationVersion

(Inherited from NativeActivity.)

System_CAPS_pubpropertyInformationAction

Determines how information records should be handled by the activity. (Inherited from PSActivity.)

System_CAPS_pubpropertyInput

The input stream for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PipelineEnabledActivity.)

System_CAPS_pubpropertyLocale

Specifies the preferred locale for WMI objects. Specify the value of the Locale parameter as an array in the MS_"LCID" format in the preferred order Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyMergeErrorToOutput

Gets or sets a value that indicates whether to merge error data to the output stream. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyName

The name of the instance or static method to call. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyNamespace

When used with the Class parameter, this parameter specifies the WMI repository namespace where the referenced WMI class is located. When used with the List parameter, it specifies the namespace from which to gather WMI class information. Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyPath

A WMI path specification that must be in the form "Win32_Printer.DeviceID='TestPrinter'". This will select instances of objects from which to call the method. Introduced in Windows PowerShell 3.0.

System_CAPS_pubpropertyPSActionRetryCount

Gets or sets the number of times the activity retries execution of an action after encountering an execution error. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSActionRetryIntervalSec

Gets or sets the number of seconds to wait before retrying the action. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSActionRunningTimeoutSec

Gets or sets the number of seconds to wait before the action times out. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSAuthenticationLevel

Specifies the authentication level to be used with the WMI connection. Valid values are: -1: Unchanged 0: Default 1: None (No authentication in performed.) 2: Connect (Authentication is performed only when the client establishes a relationship with the application.) 3: Call (Authentication is performed only at the beginning of each call when the application receives the request.) 4: Packet (Authentication is performed on all the data that is received from the client.) 5: PacketIntegrity (All the data that is transferred between the client and the application is authenticated and verified.) 6: PacketPrivacy (The properties of the other authentication levels are used, and all the data is encrypted.) Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyPSCommandName

Gets the fully qualified name of the command invoked by this activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSComputerName

The name of the computer where the activity runs. Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyPSCredential

The credentials used to authenticate the host. Introduced in Windows PowerShell 3.0.(Inherited from WmiActivity.)

System_CAPS_pubpropertyPSDebug

Gets or sets the debug stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSDisableSerialization

Gets or sets a value that indicates whether to disable serialization for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSError

Gets or sets the error stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSInformation

The Information stream / collection for the activity. (Inherited from PSActivity.)

System_CAPS_pubpropertyPSPersist

Gets or sets a value that indicates whether to force the activity to persist the workflow state onto the disk. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSProgress

Gets or sets the progress stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSProgressMessage

Gets or sets the message in the progress stream. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSRequiredModules

Gets or sets the list of module names or paths that are required to run this activity successfully. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSVerbose

Gets or sets the verbose stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyPSWarning

Gets or sets the warning stream (or collection of streams) for the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyResult

The output stream from the activity. Introduced in Windows PowerShell 3.0.(Inherited from PipelineEnabledActivity.)

System_CAPS_pubpropertyUseDefaultInput

Specifies whether to connect the input stream for this activity. Introduced in Windows PowerShell 3.0.(Inherited from PipelineEnabledActivity.)

System_CAPS_pubpropertyVerbose

Gets or sets a value that indicates whether to emit verbose output of the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

System_CAPS_pubpropertyWarningAction

Gets or sets how warnings are handled by the activity. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Activity.)

System_CAPS_protmethodUpdateImplementationContextForLocalExecution(ActivityImplementationContext^, ActivityContext^)

Updates the ActivityImplementationContext returned from the GetPowerShell method to support local execution against the host's runspace pool. Introduced in Windows PowerShell 3.0.(Inherited from PSActivity.)

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: