Git Product home page Git Product logo

powercli-moduleinstaller's Introduction

PowerCLI Installer

Installing PowerCLI 6.5.2

Use branch v2 for later versions of PowerCLI: https://github.com/PowerShellCrack/PowerCLI-ModuleInstaller/tree/v2

FILE: Install-PowerCLI.ps1
DESCRIPTION:Install an Offline copy of PowerCLI from https://www.powershellgallery.com/packages/VMware.PowerCLI loading all dependencies in the appropiate order. Also installs the nuget assemby

FEATURES:

  • Find the latest downloaded PowerCLI version folder, and copy the files to the users profile Powershell directory Include a progress bar for coping
  • Copy Nuget folder (located in PowerCLI version folder) to C:\Program Files\PackageManagement\ProviderAssemblies
  • Disable CEIP
  • Copy a modified version of Initialize-PowerCLIEnvironment.ps1 to the users profile PowerCLI directory
  • Copy a icon to the users profile PowerCLI directory
  • Create PowerCLI desktop shortcuts, x86 and x64 (like the installer did, pointing to Initialize-PowerCLIEnvironment.ps1  and using the icon)
  • Load PowerCLI when done. 

  • FILE: Initialize-PowerCLIEnvironment.ps1
    DESCRIPTION:Modified version of VMWare's ps1 file that comes with 6.5.0 installer to be used with 6.5.2. This script is called by the desktop shortcuts to load the PowerCLI modules appropiately

    powercli-moduleinstaller's People

    Contributors

    powershellcrack avatar

    Stargazers

     avatar  avatar  avatar  avatar  avatar  avatar

    Watchers

     avatar  avatar  avatar

    powercli-moduleinstaller's Issues

    .dll copy succeeds but still requests NuGet provider required to continue

    downloaded and extracted the .210 dll file successfully from https://www.powershellgallery.com/packages/PackageManagement/1.1.7.2
    Placed into the working directory per instructions....
    NuGet
    --2.8.5.210
    ----Microsoft.PackageManagement.NuGetProvider.dll

    Script navigates to the Modules\VMware.PowerCLI-11.0.0-10380590 successfully and that that is when it states it still needs "NuGet provider is required to continue"
    "PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories..."

    I went above and beyond the script by placing the Microsoft.PackageManagement.NuGetProvider.dll
    in the c:\Program Files\PackageManagement\ProviderAssemblies\nuget and c:\users%userprofile%\AppData\Local\PackageManagement\ProviderAssemblies\NuGet directories and verified the script placed the .dll into the c:\Program Files (x86)\PackageManagement\ProviderAssemblies\

    What is continuing to trigger the NuGet?

    I've downloaded and tried different VMware.PowerCLI Modules version from both the PowerShellGallery and from https://code.vmware.com/web/dp/tool/vmware-powercli sites.

    I saw the https://blogs.vmware.com/PowerCLI/ mentions under known issuese suggesting getting something newer than the standard "Older versions of PowerShellGet (Example: 1.0.0.1) will fail because it can’t handle the formatting of one specific PowerCLI version."

    What version have you tested for PowerShellGet? I'll have to try that tomorrow since I"ve been trying this all day to work :(

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.