-3
我想从另一台计算机在远程计算机上运行文件。我正在使用此代码如何通过.bat文件在远程计算机上运行程序
set executeAs=%user%
set executeAsPwd=%userPwd%
schtasks /Create /S %machine% /U %user% /P %userPwd% /RU %executeAs% /RP %executeAsPwd% /SC ONCE /TN install /TR %file% /ST 10:11:00
schtasks /Run /S %machine% /U %user% /P %userPwd% /TN install
pause
但它显示错误访问被拒绝。
请格式化以使代码可读! –
我该如何格式化这段代码。因为它在我的电脑上看起来不错 – abid
看看psexec:https://technet.microsoft.com/sysinternals/psexec –