psexec:vbs-script权限被拒绝

问题描述 投票:1回答:1

使用此命令,我想在我的第二台计算机上执行我的vbs脚本,但是我收到了消息,该权限被拒绝

Psexec.exe \\computer2 test.vbs 

我也尝试使用不同的语法,例如使用admin-account

Psexec.exe \\computer2 test.vbs -u user -p Alpha

怎么了?

windows cmd remote-access psexec
1个回答
0
投票

I want to execute my vbs-script on my second Computer, but I get "permission denied"

您需要使用.vbs在远程计算机上执行cscript文件:

psexec.exe \\computer2 -u user -p Alpha c:\windows\system32\cscript.exe test.vbs

Further reading

© www.soinside.com 2019 - 2024. All rights reserved.