質問

winexe を使用して、Ubuntu コンピューターから Windows コンピューターにリモート コマンドを送信しています。ユーザードメイン/ユーザー名%パスワードであればうまく機能します。ただし、Windows から Windows にリモート コマンドを送信するユーティリティである psExec には、ユーザー名とパスワードの組み合わせは必要ないと思います。

したがって、このコマンドは機能します。

bin/winexe -U user%password //computer 'msg  hello world'

これはそうではありません

bin/winexe //computer 'msg hello world' winexe でコマンドをリストするだけでエラーは発生しません

助言がありますか?

役に立ちましたか?

解決

ユーザー名とパスワードの入力を避ける方法はないようですが、以下の方法を試すことができます。

winexe --authentication-file //computer 'msg  hello world'

この形式で認証ファイルを作成します。

domain=domainName
username=myUserName
password=myPassword
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top