Jump to content
PHIstw

Using Chocolatey From Terminal

Recommended Posts

Hi

 

I am trying to deploy a new solution on my systems and I thought of a combo Chocolatey + PulseWay in order to facilitate deployement. I managed to install choco using the command:

@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

 

When going to the targeted system, I can use choco without any issue. However, from the terminal or scripts in Pulseway, the command "choco" is not recognized. Would you have any idea why and how I can fix this?

 

Thank you,

Regards

Share this post


Link to post
Share on other sites

Hi @PHIstw,

The Pulseway service is running under the system account on the remote system, therefore it is possible that the Chockolatey is installed only for currently logged in user.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...