Plugin seems to not install chocolatey on several machines

Support and questions for using and managing Chocolatey NuGet inside of Labtech
Post Reply
axiomcrs
Posts: 8
Joined: Fri Dec 02, 2016 10:12 pm
7

Plugin seems to not install chocolatey on several machines

Post by axiomcrs »

I found several where chocolatey was not installed. I was trying upgrade Veeam and got this:
C:\WINDOWS\system32>choco install veeam-agent
'choco' is not recognized as an internal or external command,
operable program or batch file.


When I tried to do the ps1 manually I got this:
PS C:\Program Files (x86)\WindowsPowerShell\Modules\Pester\3.4.0> .\chocolateyInstall.ps1
Test-ModuleManifest : The specified module 'C:\Program Files
(x86)\WindowsPowerShell\Modules\Pester\3.4.0\Tools\Pester.psd1' was not loaded because no valid module file was found
in any module directory.
At C:\Program Files (x86)\WindowsPowerShell\Modules\Pester\3.4.0\chocolateyInstall.ps1:14 char:28
+ ... st = Test-ModuleManifest -Path $manifestFile -WarningAction Ig ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (C:\Program File...ols\Pester.psd1:String) [Test-ModuleManifest], F
ileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.TestModuleManifestCommand

PS C:\Program Files (x86)\WindowsPowerShell\Modules\Pester\3.4.0>

Both were run with admin access.
I have plugin version 2.0.1.90
The machine is Win10.
The plugin shows this for the machine:
https://i.gyazo.com/194360c076a4fe72546 ... f94a25.png

Any ideas?

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Plugin seems to not install chocolatey on several machines

Post by Cubert »

If you go to chocolatey.org and grab the one liner power shell command for installing chocolatey and execute that command on that Windows system, does it install?

axiomcrs
Posts: 8
Joined: Fri Dec 02, 2016 10:12 pm
7

Re: Plugin seems to not install chocolatey on several machines

Post by axiomcrs »

Thanks,
That command produced an error about the iwr portion not being recognized. It turns out the ps version is 2 on those machines. Couldn't (or wouldn't) the chocolatey plugin update the ps ver and then try to run again?

Also, if chocolatey fails to install is there some sort of notification thru Labtech with an alert?
Last edited by axiomcrs on Fri Jun 22, 2018 5:25 pm, edited 1 time in total.

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Plugin seems to not install chocolatey on several machines

Post by Cubert »

Looks like it does not..

You can have a peek at our Powershell plugin
https://www.plugins4labtech.com/product ... nd-manager

This will solve that problem pretty quickly.

Post Reply

Return to “Chocolatey For Labtech”