当尝试使用“指定的网络资源或设备不再可用"读取证书存储时,PowerShell失败. [英] PowerShell fails when trying to read certificate store with "The specified network resource or device is no longer available"
问题描述
我试图在计算机上找到特定的证书,但遇到了一个奇怪的问题.调用时,我看到指定的网络资源或设备不再可用
错误:
I was trying to find a specific certificate on my machine, and I ran into an odd issue. I was seeing The specified network resource or device is no longer available
errors when calling:
Get-ChildItem -Path "XXXXX" -Recurse
"XXXX"
是我要查找的证书的指纹.
Where "XXXX"
was the thumbprint of the certificate I was looking for.
要尝试缩小问题范围,我首先删除了命令的指纹(即调用 Get-ChildItem -Recurse
),并发现尝试从 UserDS
证书存储(请参见下面的输出缩写屏幕截图):
To try to narrow down the issue, I started by removing the thumbprint of my command (i.e. calling Get-ChildItem -Recurse
), and found that the script failed when trying to read from the UserDS
certificate store (see abbreviated screenshot of output, below):
然后,我尝试将 cd
放入 UserDS
证书存储中,以查看它是否允许我进入,并查看在该位置是否可以看到任何内容.尝试致电 ls
时,我收到了相同的错误(见下文):
I then tried to cd
into the UserDS
certificate store to see if it would even let me, and to see if I could see anything in that location. Upon trying to call ls
I received the same error (see below):
我不知道是什么原因导致此问题或如何解决.它使我无法在本地安装客户端解决方案,因此非常感谢您的帮助或想法.谢谢!
I can't figure out what's causing this issue or how to fix it. It's blocking me on the local installation of a client's solution, so any help or ideas are very much appreciated. Thanks!
推荐答案
UserDS
存储区(或 certmgr.msc 用户目录中的
Active Directory用户对象
)代码>)显示用户的活动目录存储的证书(请参见此处,此处).
The UserDS
store (or Active Directory User Object
in the certmgr.msc
) displays active directory stored certificates of the user (see here, here, here and here).
当本地设备(例如指定的网络资源或设备不再可用
)错误消息mywindowshub.com/windows-10-error-0x80070037-the-specified-network-resource-or-device-is-no-longer-available/"rel =" nofollow noreferrer> usb棒不可用)或
The error 0x80070037
(the specified network resource or device is no longer available
) message occurs when a local device (like an usb stick is unavailable) or a network connection is interrupted while accessing a resource.
商店在Windows注册表中有一个密钥( Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ SystemCertificates \ UserDS
),并保存有关证书的信息,这些信息是从活动导向器中读取的
The store has a key in the windows registry (Computer\HKEY_CURRENT_USER\Software\Microsoft\SystemCertificates\UserDS
) and saves information on certificates which are read from active director.
我看到两个选择:
- 注册表中的信息已损坏
- 您在访问活动目录时遇到问题
如果要在调用 Get-ChildItem
时处理错误,请查看此
If you want to handle the error when calling Get-ChildItem
look at this SO post
这篇关于当尝试使用“指定的网络资源或设备不再可用"读取证书存储时,PowerShell失败.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!