0

I'm trying to use Java to create and send messages for remote powershell commands, running over ws-man. The specific implementation is for Office365, but the issue I'm having is that I can't figure out how to create valid powershell commands by hand because the spec for the message format doesn't seem to match what actually needs to be sent:

http://msdn.microsoft.com/en-us/library/dd303832(v=PROT.10).aspx

Has anybody else run into this issue? I need to make this work without .Net, but I'm not sure if it's actually possible at this point.

4

2 に答える 2

1

私は WS-Man の専門家ではありませんが、Windows 以外のクライアントで PowerShell コマンドを起動するというこの記事に出くわしました。お役に立てると思います。

http://blogs.msdn.com/b/wmi/archive/2011/01/25/using-ws-man-to-invoke-a-powershell-cmdlet.aspx

于 2011-06-24T16:14:23.463 に答える
1

これは関連している可能性がありますが、試したことはありませんが、Intel が提供する Java ws-man クライアントです。

http://software.intel.com/en-us/articles/download-the-latest-intel-ws-management-java-client-library/

少なくとも、それがどのように行われているかを確認できるソース コードがあります。

于 2011-06-06T19:35:37.210 に答える