无法加载自定义凭据提供程序

问题描述

我在 VMware 的 Windows10 上应用了 MS(https://github.com/microsoft/Windows-classic-samples) 提供的 Credential Provider Sample。

但是什么都没有改变。

以下是我申请的。

如果我错过了什么或做错了什么,请告诉我。

提前致谢。

  1. 我将 .dll 文件放在 C:/Windows/System32 中。
  2. 我运行了下面的 Register.reg。
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers\{5fd3d285-0dd9-4362-8855-e0abaacd4af6}]
@="SampleV2CredentialProvider"

[HKEY_CLASSES_ROOT\CLSID\{5fd3d285-0dd9-4362-8855-e0abaacd4af6}]
@="SampleV2CredentialProvider"

[HKEY_CLASSES_ROOT\CLSID\{5fd3d285-0dd9-4362-8855-e0abaacd4af6}\InprocServer32]
@="SampleV2CredentialProvider.dll"
"ThreadingModel"="Apartment"
  1. 为了将我的凭据提供程序应用为认凭据提供程序,我在“分配认凭据提供程序”中输入了 GUID。

    enter image description here

  2. 重启后没有任何变化。

    enter image description here

解决方法

我通过将位于 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon 中的 AutoAdminLogon 的值更改为 1 解决了这个问题。