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/716c6791-ccca-4b0c-a7be-b772a4a2e8b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.