Is there an equivalent to /etc/default/telegraf on Windows


Hello. I’m trying to configure some automation around the installation and configuration of Telegraf on Windows. For our Linux installations we make use of the /etc/default/telegraf file for storing certain environment variables.

That support appears to be implemented here:

My question:
Is there an equivalent file on Windows for storing default environment variables?

UPDATE: I found the answer. You just need to set a “Machine” level environment variable like:
[Environment]::SetEnvironmentVariable(“MyVariable”, “MyValue”, “Machine”)
and then Telegraf will find it. Sorry if it was a dumb question - I’m not a “Windows guy” so it wasn’t obvious to me, and there isn’t much documentation covering Telegraf on Windows.