0
我想驗證usbstor驅動程序設置爲在我的域中的遠程計算機上禁用vbscript,但我有問題。我已經轉向從命令行進行故障排除。winrs註冊查詢工程,但註冊查詢主機名不
使用普通舊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