-
0 votesanswersviews
将变量传递给vbscript中的psexec powershell命令
我正在尝试将用户输入计算机名称传递给psexec命令 . 我试过一切 . 我知道该命令有效,因为如果我通过手动输入计算机名称来运行该文件是成功的 . 我需要将strComputer变量放入\ strComputer psexec命令中 . 提前致谢 . Set objShell = CreateObject("Wscript.shell") Dim strComputer ... -
0 votesanswersviews
两个Windows服务器之间的PsExec命令问题
我正在尝试使用以下命令从远程Server1运行批处理文件到位于公共域的远程Server2(都是Windows Server 2008 R2): psexec \\Webtestserver2 -u sunny -p sunny2on_test -d -i cmd /c D:\files\script.bat NOTE: 在两台服务器上,Drive:D在公共域上共享 . 我得到以下输出: PsEx... -
-1 votesanswersviews
Windows Server启动脚本上的PSExec
我是以编程方式启动运行Windows Server 2016的Google Cloud 计算实例,其中包含启动脚本 . 启动脚本中的可执行文件需要作为特定用户启动,因此我尝试使用 psexec 启动它以模拟所述用户: C:/psexec.exe \\\\WIN-SERVER-2016 -u WIN-SERVER-2016\\customuser -p custompassword -accepte...