WmiActivity
Class
Definition
Abstract base contining the common members and invocation code for the WMI cmdlets.
public abstract class WmiActivity : Microsoft.PowerShell.Activities.PSActivity
- Inheritance
- Derived
Inherited Members
Microsoft.PowerShell.Activities.PipelineEnabledActivity
Microsoft.PowerShell.Activities.PSActivity
Constructors
| WmiActivity() |
Properties
| Authority |
Specifies the authority 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 "DomainName" identifies a valid NTLM domain name. To use Kerberos, specify kerberos:"DomainName>\ServerName". You cannot include the authority setting when you connect to the local computer. |
| EnableAllPrivileges |
Enables all the privileges of the current user before the command makes the WMI call. |
| Impersonation |
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.) |
| Locale |
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 . |
| Namespace |
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. |
| PSAuthenticationLevel |
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.) |
| PSComputerName |
The computer name to invoke this activity on. |
| PSCredential |
Defines the credential to use in the remote connection. |
Methods
| GetImplementation(NativeActivityContext) |
Perform necessary steps to prepare the WMI commands |
| GetUbiquitousParameter<T>(String, Dictionary<String,Object>) |
Generic version of the function to handle value types |
| GetWmiCommandCore(NativeActivityContext, String) |
Sets to execute the command that was passed in. |