Home Linux & Systems Cybersecurity Cloud & DevOps Networks & Infrastructure SIEM & Monitoring DFIR & Threat Intel Development & Other All categories Projects About Tools

Install PowerCLI Core on GNU/Linux

Leer en espanol
Install PowerCLI Core on GNU/Linux

Table of contents

PowerShell for every system (GitHub) PowerCLI Core (F ===

PowerCLI Core is a VMware solution based on Microsoft's Powershell. Allows us to use this Powercli linuxpowerful tool on Linux, Mac and Docker.

First of all we have to install the dependencies:

Bash
root@redorbita:~# apt-get install ca-certificates curl libunwind8 libicu52 unzip wget libcurl4-openssl-dev

PowerCLI Core Installation

You can download the latest version of Powershell for your distribution  here.

In my case I am doing the installation on a Debian 8 (I have downloaded the Ubuntu 14.04 version)

Bash
root@redorbita:~# wget https://github.com/PowerShell/PowerShell/releases/download/v6.0.0-alpha.18/powershell_6.0.0-alpha.18-1ubuntu1.14.04.1_amd64.deb

We install the package and execute apt-get -f install to resolve missing dependencies.

Bash
root@redorbita:~# dpkg -i powershell_6.0.0-alpha.11-1ubuntu1.14.04.1_amd64.deb

root@redorbita:~# apt-get install -f

We create the directory for the module

Bash
root@redorbita:~# mkdir -p ~/.local/share/powershell/Modules

We download the module and unzip it in the directory created previously.

Bash
wget https://download3.vmware.com/software/vmw-tools/powerclicore/PowerCLI_Core.zip

unzip PowerCLI_Core.zip && unzip ‘PowerCLI.*.zip’ -d ~/.local/share/powershell/Modules

We try to access the powershell console

Bash
root@redorbita:~# powershell

PowerShell

Copyright (C) Microsoft Corporation. All rights reserved.

In order to connect via powercli to vsphere We do it in the following way:

text
PS /root> Connect-VIServer -Server <DIRECCION IP O NOMBRE> -User <USUARIO@vsphere.local> -Password <CONTRASEÑA>

All the best.

:wq!

Comments