我正在尝试验证usbstor驱动程序是否设置为在vbscript中我域中的远程计算机上禁用,但我有问题。我已经转向从命令行进行故障排除。
使用普通的旧reg query失败。
reg query \\hostname\hklm\system\currentcontrolset\services\usbstor /v start
ERROR: The network path was not found.但是,如果我使用winrs运行相同的命令,它就能正常工作。
winrs -r:hostname reg query hklm\system\currentcontrolset\services\usbstor /v start
HKEY_LOCAL_MACHINE\system\currentcontrolset\services\usbstor
start REG_DWORD 0x4这两个命令在其他计算机上都能正常工作。这个怎么回事?
无论在哪台计算机上运行命令,我都使用以下命令打开防火墙:
winrs -r:hostname netsh advfirewall firewall set rule
group="Windows Management Instrumentation (WMI)" new enable=yes发布于 2015-11-04 11:27:22
服务RemoteRegistry不在远程主机上运行(或无法访问)。你应该可以这样开始:
sc \\hostname config RemoteRegistry start= auto
sc \\hostname start RemoteRegistry如果服务正在运行,但仍无法访问,请检查Windows allows RPC。
https://stackoverflow.com/questions/33505833
复制相似问题