โ02-15-2023 03:46 PM
Hello JumpCloud Community!
I'm trying to make a command that installs Bitwarden on some of my machines remotely. I'm utilizing Chocolatey Package installer. I've made the script and it runs perfectly fine locally, but when I go into remote use of it, my if and else statement will always go to "Else" on a Remote command send.
The following is my simple script:
Solved! Go to Solution.
โ02-17-2023 11:45 AM
Okay, just throwing this out there, but why are you making a script at all, as it already exists in the Choco repos, so you can just add it directly in software management in JumpCloud?
It just works on all my Windows and Mac machines using JC's Software Management and Apple ABM> VPP.
โ02-17-2023 11:45 AM
Okay, just throwing this out there, but why are you making a script at all, as it already exists in the Choco repos, so you can just add it directly in software management in JumpCloud?
It just works on all my Windows and Mac machines using JC's Software Management and Apple ABM> VPP.
โ02-17-2023 04:12 PM
Thanks for Replying, I did originally use Software Management, and the installation failed. So, I used the script as a backup. Due to me putting in the wrong package ID. I have now set it up with Software Management and with the correct installation package ID and JC shows it installed correctly. Unfortunately, I don't even see Bitwarden in the device under Control Panel > Programs. Any guidance as to why this is?
Thank you,
โ02-20-2023 09:42 AM
Not 100% sure on this, but I do know that often, when you uninstall software via chocolatey (or other PowerShell based options) the Windows Programs list doesn't update until the machine is restarted. I wonder if installation might be the same way.
I think this is more of an issue with Windows not reloading the registry on its own, than it is an actual issue with chocolatey.
โ02-20-2023 11:25 AM
So I did some digging, when I use the software management and add a pc to Bitwarden. Software Management gives me the "Install Successful" I go to look into Programs of that pc to see if it was installed no luck. I searched the directory and have noticed it's just downloading the installer in temp location. I thought it was supposed to just Install itself silently.
โ03-03-2023 11:44 AM
The installer downloads to a temp location, and it runs the installer from there. Once installed the installer isn't needed, so it's auto clean up. This is pretty normal. It shouldn't be actually installing in any temp locations though.
Sounds like there is some issue with chocolately calling the installer services to do the silent install after it downloads. I'm not quite sure where to go from here though.
I'm a bit more of a hands-on type that just works the problem; then being a walking KB. ๐
New to the site? Take a look at these additional resources:
Ready to join us? You can register here.