Guys,
I am having the EXACT same issue.
vCenter 5.5 running on Server 2008R2. I am DESPERATELY trying to write some Powershell scripts to kick off on an alarm trigger and send notification to a slack channel for our admin boys, however, no environment variables I can see anywhere in Windows.
Can someone PLEASE take a second and respond to this, its driving me crazy. Am I doing something really stupid?
My scripts are failing as the JSON Payload I am sending is has a blank alarm description field, which is supposed to be taken from the $env:insert_vcenter_alarm field, yet as the poster above found, I do not see these variables in powershell or command prompt.
What is going on, it is making me lose my mind!