Posts

Showing posts from April, 2020

Getting started with VMWare PowerCLI

Image
Hi all! Welcome to my blog. In this post I wanted to show newcomers to VMWare, on how to get started with automating vSphere. I will go through installing the PowerShell module and logging into a vSphere server to start sending commands! You should ideally have a Windows 10 workstation with PowerShell version 5 or above. You can check your PowerShell version by typing $PSversiontable. We need to enable the workstation to allow scripts to run. Run the "Set-ExecutionPolicy -ExecutionPolicy Unrestricted" command. You need to use good judgment about running scripts, never run a script that you dont understand or know where it came from. The next step for us to do is check to see if we can reach the internet using PowerShell. Try running the command "Find-Module -Name VMWare.PowerCLI" (without the quotes). You should receive the output similar to the screenshot below. The "Find-Module" commandlet will attempt to get information about a