Hello,
I am trying to use vagrant ssh from my host to run a script within my guest, but the shell doesn't share the same environment as the environment that I've set up in my provisioning step (namely adding certain directories to my $PATH variable). To illustrate this, if I run "echo $env:path" from within my guest, I can see all the directories that I've added, whereas if I access the shell from vagrant ssh, I only see the standard Windows paths. Is there a way to sync these two environments or to use winrm to run the script instead? Oddly enough I tried executing the script in my provisioning step instead (which I'd rather not do), and it worked just fine. Why does the provisioner have a different environment in this case? Any clarification would help. Thanks,
--Niko