ImpersonationLevel 枚举

定义

描述连接到 WMI 时将使用的模拟级别。Describes the impersonation level to be used to connect to WMI.

public enum class ImpersonationLevel
public enum ImpersonationLevel
type ImpersonationLevel = 
Public Enum ImpersonationLevel
继承
ImpersonationLevel

字段

Anonymous 1

隐藏调用方身份的匿名 COM 模拟级别。Anonymous COM impersonation level that hides the identity of the caller. 在此模拟级别上对 WMI 的调用可能会失败。Calls to WMI may fail with this impersonation level.

Default 0

默认模拟。Default impersonation.

Delegate 4

委托级别的 COM 模拟级别,该级别使对象可以允许其他对象使用调用方的凭据。Delegate-level COM impersonation level that allows objects to permit other objects to use the credentials of the caller. 此级别将用于 WMI 调用,但可能形成不必要的安全风险,只有 Windows 2000 才支持此级别。This level, which will work with WMI calls but may constitute an unnecessary security risk, is supported only under Windows 2000.

Identify 2

标识级别的 COM 模拟级别,该级别使对象能够查询调用方的凭据。Identify-level COM impersonation level that allows objects to query the credentials of the caller. 在此模拟级别上对 WMI 的调用可能会失败。Calls to WMI may fail with this impersonation level.

Impersonate 3

模拟级别的 COM 模拟级别,该级别允许对象使用调用方的凭据。Impersonate-level COM impersonation level that allows objects to use the credentials of the caller. 这是为 WMI 调用推荐的模拟级别。This is the recommended impersonation level for WMI calls.

适用于