flofreud / posh-gvm

GVM for Powershell
Apache License 2.0
210 stars 60 forks source link

Install fails: "This command is not available in offline mode." #13

Closed ecowden closed 8 years ago

ecowden commented 8 years ago

We've gotten this to install successfully on several computers, but we have one that stubbornly refuses to work.

Using the Short Script installation method, when we get to step 2, we get,

This command is not available in offline mode.
At C:\Users\...\Documents\WindowsPowerShell\Modules\posh-gvm\Utils.ps1:294 char:14
...

The system is connected to the Internet and the firewall is off. We can run ping google.com in the same PowerShell session just fine, etc.

Any suggestions?

flofreud commented 8 years ago

I had to update posh-gvm shortly because the API endpoint which is uses to determine online status is not available anymore. Unfortunately this also broke the selfupdate feature.

Could be there is still a old version on the problematic computer. Try to remove the module folder under C:\Users\...\Documents\WindowsPowerShell\Modules\posh-gvm\ and than install it again.

Otherwise try to execute the gvm command with the -Verbose flag. Probably the output yields some explanation.

ecowden commented 8 years ago

Apologies for the delay - the holiday calendar threw a wrench in things.

We've figured out the problem. For posterity, the issue is that we had Powershell v2.x installed instead of v3.x. Installing the "Windows Management Framework 3.0" from here resolved the problem.

Thanks!