# jaWinRm
`jaWinRm` executes remote commands on Windows machines through the use of WinRM/WinRS and stores the result at files.

## Usage
```bash
./jaWinRm -hostname Your_Host_IP -username 'Your_User_NAME' -password 'Your_Password' -cmd 'Your_Command'
```

## Flags
### Option: -hostname
- Def: Public IPv4 address or Public IPv4 DNS of your windows server.
- Mandatory: Yes
### Option: -username
- Def: Username of the remote machine.
- Mandatory: Yes
### Option: -password
- Def: Password of the remote machine.
- Mandatory: Yes
### Option: -port
- Def: Specific WinRM port of the remote machine.
- Mandatory: No
- Default: 5985
### Option: -cmd
- Def: Commands that will run on the remote machine.
- Mandatory: No
- Default: ""
### Option: -stdout
- Def: Filepath that will store stdout.
- Mandatory: No
- Default: /tmp/ja_winrm_stdout.log
### Option: -stderr
- Def: Filepath that will store stderr.
- Mandatory: No
- Default: /tmp/ja_winrm_stderr.log
### Option: -jaconf
- Def: Jobarranger server's config filepath.
- Mandatory: No
- Default: /etc/jobarranger/jobarg_server.conf

