this is a bug with WinRM and will be fixed in 1.1, see
https://github.com/influxdata/telegraf/pull/1772
On Tuesday, September 27, 2016 at 8:17:31 AM UTC+1, Willem D'Haese wrote:
> Hello,
>
>
> I'm trying to remotely install telegraf as a service with Powershell. No
> matter what I try, the command does not seem to be executed. So after putting
> C:\Program Files\Telegraf\telegraf.exe and C:\Program
> Files\Telegraf\telegraf.conf on the remote test server srv2012test
>
>
>
>
>
> $Session=New-PsSession –ComputerName srv2012test
> Invoke-Command –Session $session {
> & 'C:\Program Files\Telegraf\telegraf.exe' --service install
> }
>
>
>
>
> invoke-command -ComputerName srv2012test -ScriptBlock { & 'C:\Program
> Files\Telegraf\Telegraf.exe' --service install }
> Other non-telegraf related commands execute well.
>
>
> Anyone got any ideas how to install the Telegraf agent as a service with
> Powershell (not using NSSM)
>
>
> Willem
--
Remember to include the InfluxDB version number with all issue reports
---
You received this message because you are subscribed to the Google Groups
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit
https://groups.google.com/d/msgid/influxdb/2b314dbd-eb45-4659-8a59-708e14c51e81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.