psexec 起動プログラムが動作しない

psexec 起動プログラムが動作しない

psexec を使用してリモート マシン上のプログラムを終了して起動したいと思います。次のバッチ ファイルを使用します (c:/users/user は psexec ルートです)

cd c:/users/user
psexec \\computername cmd /c "taskkill /im SwyxIt!.exe /f"
psexec \\computername cmd /c "taskkill /im CLMgr.exe /f"
timeout -t 5
psexec \\computername cmd /c "start C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"

しかし、プログラムは起動しません!

また、このように開始コマンドを実行すると psexec \\computername cmd /c "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"

起動しません。

自分のマシンで psexec なしでコマンドを実行すると、start "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe"問題なく動作します。

何か提案はありますか? すべてのリモート マシンに対して管理者権限を持っています。

答え1

わかりました。-sパラメータを有効にする必要もありました

このコマンドで動作します

psexec -s -i \\computername cmd /c "start /i "SwyxIt!" "C:\Program Files (x86)\SwyxIt!\SwyxIt!.exe""

助けてくれてありがとう

関連情報