hierynomus / smbj

Server Message Block (SMB2, SMB3) implementation in Java
Other
705 stars 179 forks source link

How excute the command on remover server #802

Closed selvakumartvsk closed 9 months ago

selvakumartvsk commented 9 months ago

We have requirement, we have to execute the bat file on remote server in java , so how to achieve that by SMBclient

selvakumartvsk commented 9 months ago

@hierynomus Could you help me on this? Whether this is achievable by using SMBclient()

hierynomus commented 9 months ago

@selvakumartvsk No, the SMB protocol is not suited for command execution. For that you would need WinRM.

selvakumartvsk commented 9 months ago

@hierynomus Thanks for the information.