特定のタスクを実行するには、次のコマンドを実行する必要がありました
telnet 10.0.0.192 *hit enter
y (answer yes to whatever question comes up) *hit enter
DOMAIN\username (when prompted for username) *hit enter
password (when prompted for password) *hit enter
\\10.0.0.2\path\batchFile.bat (this is the batch file I'd like to run in the end) *hit neter
このすべてのデータを 1 つのバッチ ファイルに結合して (パスワードを保存しても問題ありません)、バッチ ファイルをダブルクリックするだけbatchFile.bat
でリモート サーバー上で実行できるようにする方法はありますか?