首先我的工作设置:
DesktopPC: Windows 10 Pro,版本:10.0.10586版本:10586,64位
笔记本电脑: Windows 10 Pro,版本:10.0.10586版本:10586,64位
用户:两台计算机具有相同的用户名{zuka}&password {等等.
我尝试使用笔记本电脑远程连接WMIC到我的DesktopPC并执行查询.
我在Powershell中键入以下shell命令:
PS C:\Windows\system32> wmic
wmic:root\cli> /user: zuka
Please enter the password:blah
wmic:root\cli> /node: {IP-Address of my DesktopPC}
wmic:root\cli> csproduct get /value
Node - {IP-Address of my DesktopPC}
Error:
Description = Access is denied.
Run Code Online (Sandbox Code Playgroud)
或者:
get-wmiobject CIM_Memory -computername desktopPC { or IP } -credential zuka
Run Code Online (Sandbox Code Playgroud)
我得到一个错误消息,如:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))
Run Code Online (Sandbox Code Playgroud)
我尝试通过以下步骤解决问题:(但它们都没有工作:[]