PowerShellCrack / PowerCLI-ModuleInstaller

Installs the latest PowerCLI tools Offline and online
http://www.powershellcrack.com/2017/09/installing-powercli-on-disconnected.html
7 stars 0 forks source link
desktop-shortcut disconnected-networks icons module-installer offline powercli ps1 vmware

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