vSphere : PowerCLI Getting Started

Hello Guys,

This being my first article on Let's support, I would like to take this opportunity and pay homage to our excellent blog author Narayan to present me this wonderful chance.

Being a VMware (VMW) and Linux Admin, I've always been fascinated to work on command line utilities (black and white window :)). Mousing around your screen and doing tasks with just lame clicking around are just the right things which frustrate me. For some time now, I've been looking to automate and standardize ESX tasks with scripts and save some productive time for other important tasks.

While attending one of the promo sessions from VMW, I was introduced to PowerCLI, the next big command line utility from VMW. PowerCLI gives you the flexibility to connect and work on ESX / ESXi / Virtual center level. PowerCLI is powered and based on Windows PowerShell (works on XP and above). In this article I would like to share my experience with PowerCLI and also help you to install and getting started with PowerCLI.

I hope to have subsequent articles on PowerCLI based on the feedback, suggestions, comments and understanding on this article.

To start with we must have a look at the basic requirements to have PowerCLI installed on your system. I'll be generally talking about the latest version of PowerCLI - vSphere PowerCLI 4.1.

To install vSphere PowerCLI, you need:
- .NET 2.0 Service Pack 1
- Windows PowerShell 1.0 or Windows PowerShell 2.0 Release To Manufacture (RTM).

PowerCLI  works on the 32-bit and 64-bit versions of the following operating systems:
- Windows Vista
- Windows XP Service Pack 2
- Windows Server 2003

PowerCLI supports the following VMware environments
- VMware ESX Server 3.5
- VMware ESX Server 3i
- VMware VirtualCenter 2.5
- VMware ESX 3.0 and VirtualCenter 2.0
- VMware ESX 4.0 and vCenter 4.0
- VMware ESX 4.0 Update 1 and vCenter 4.0 Update 1

If you are using Windows XP / 2003, you will have to explicitly install Windows Power Shell by downloading it from Microsofts Website http://www.microsoft.com/windowsserver2003/technologies/management/powershell/download.mspx After downloading Powershell run the exe file and Powershell gets installed as easy as anyother Windows based application. In some cases it is required to reboot your system.

imageNow that we have Powershell installed and working, we should move ahead with PowerCLI installation. Firstly you would need to download the installable from www.vmware.com/go/powercli.

I don't think installing the PowerCLI exe file would be such a tedious task. Run the exe file and follow the instructions in the Wizard and wow the instillation is done. Pretty fast and Simple!!

Continued.....

Comments

  1. Hi Amit,

    i am fresher vmware , i am going to study vmware server , please give the best blog me.

    thanks
    shiva

    ReplyDelete

Post a Comment

Popular posts from this blog

VMWare Interview Questions & Tips

Windows: 2012 Server: Restoration of server from ransomware brute force attack – Real time experience

Windows and VMware : System Admin Responsibilities