This repo includes several WinRM tools written with Go:
- File transfering between two Powershell session.
- Running command on remote Powershell session.
I used masterzen's amazing repository for WinRM connections.
You can transfer/receive files to/from a Powershell session with an interactive screen.
File transfer tool takes 3 parameters:
- Direction: It denotes the direction of the file.
- 1 for from local to remote.
- 2 for from remote to local.
- First File: File's path that you want to send or receive.
- Second File: File's target path.
You can run commands on remote Powershell session with an interactive screen.
Command runner tool takes no parameters, you can use it directly from the interactive screen.