Skip to content

Instantly share code, notes, and snippets.

@mkovacek
Created June 16, 2017 17:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mkovacek/1a5e757ca9bcc96e5298b67d726f7f9d to your computer and use it in GitHub Desktop.
Save mkovacek/1a5e757ca9bcc96e5298b67d726f7f9d to your computer and use it in GitHub Desktop.
Run powershell as administrator:
-posh-gvm installation:
Execute (new-object Net.WebClient).DownloadString('https://raw.githubusercontent.com/flofreud/posh-gvm/master/GetPoshGvm.ps1') | iex
Execute Import-Module posh-gvm
// if you have problems with execution policy (https://msdn.microsoft.com/powershell/reference/5.1/Microsoft.PowerShell.Core/about/about_Execution_Policies)
// Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
// later return to old value
Execute gvm help to get started!
-sdkman installation:
curl -s "get.sdkman.io"
enter again get.sdkman.io
- To install for example java, instead "sdk install java" execute "gvm install java"
@UgmaDevelopment
Copy link

I was hopeful that this would work, but when executing Import-Module posh-gvm, I get

Import-Module : This command is not available in offline mode.
At line:1 char:1
+ Import-Module posh-gvm
+ ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (This command is...n offline mode.:String) [Import-Module], RuntimeExc
   eption
    + FullyQualifiedErrorId : This command is not available in offline mode.,Microsoft.PowerShell.Commands.ImportModul
   eCommand

Any ideas? Thanks, regardless.

@mkovacek
Copy link
Author

Hi, don't have a windows machine anymore, but maybe this will help flofreud/posh-gvm#30
if not try with Cygwin https://sdkman.io/install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment