Open joschi99 opened 11 months ago
It's the same issue i think: https://github.com/centreon/centreon-plugins/issues/4461 Could you check the file transferred on the windows and decode it ?
seems working:
here you can find the file pendingreboot-7B615C18.bat.txt
With --debug you have the same error (like the other ticket) ?
I have launched the command with --debug and another time with --debug-stream, but I can encode the file correctly
As explained in the issue 4461 (https://github.com/centreon/centreon-plugins/issues/4461) the problem appears to be related to the use of cmd.exe to execute the script file. CMD has a limit of 8191 characters for a single command, but the .bat file is bigger. This is the reason it works when pasted in powershell (which has a command line length limit of 64k) but it doesn't work if pasted in a CMD shell.
Latest plugin version:
I have started manually the PS code on the host and this seem's working: