Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ImpersonationLevel Enum

Definition

Namespace:
System.Management
Assembly:
System.Management.dll
Package:
System.Management v11.0.0-preview.5.26302.115
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs
Source:
ManagementOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Describes the impersonation level to be used to connect to WMI.

public enum class ImpersonationLevel
public enum ImpersonationLevel
type ImpersonationLevel = 
Public Enum ImpersonationLevel
Inheritance
ImpersonationLevel

Fields

Name Value Description
Default 0

Default impersonation.

Anonymous 1

Anonymous COM impersonation level that hides the identity of the caller. Calls to WMI may fail with this impersonation level.

Identify 2

Identify-level COM impersonation level that allows objects to query the credentials of the caller. Calls to WMI may fail with this impersonation level.

Impersonate 3

Impersonate-level COM impersonation level that allows objects to use the credentials of the caller. This is the recommended impersonation level for WMI calls.

Delegate 4

Delegate-level COM impersonation level that allows objects to permit other objects to use the credentials of the caller. This level, which will work with WMI calls but may constitute an unnecessary security risk, is supported only under Windows 2000.

Applies to


Feedback

Was this page helpful?