Execute clist through Boxstarter

Jul 28, 2014 at 8:55 PM
Hi,

is there a way to execute a custom script with Boxstarter remotely?
Coordinator
Jul 28, 2014 at 9:11 PM
Jul 28, 2014 at 10:01 PM
So do I have to create a custom package with clist in it? I still don't know where to start and I read a lot of documentation already.
Coordinator
Jul 29, 2014 at 7:21 AM
My experience here has been that commands like clist work fine via powershell remoting with the following exceptions:
  1. You just installed chocolatey. And the path may not be permanent until the first chocolatey run completes.
  2. You authenticte into the remoting session as a different user than the one you installed chocolatey with. This might have been fixed in a recent release.
Of course I'm sure there are more exceptions that you may have found. However, if you find yourself in a PS remoting session and clist does not work, try manually adding the chocolatey bin to your path:
$env:path="$env:path;c:\programdata\chocolatey\bin"
I believe that will fix up your session and make the commands accessible.
Jul 29, 2014 at 9:10 PM
Thank you for all your help. The path change unfortunately didn't help. Now I tried it on a different machine and there it's working......hell knows why it didn't work on the first one. I'm going to reinstall Windows there and check, if it still doesn't work.

Thanks again!