Book Image

PowerCLI Essentials

By : Chris Halverson
Book Image

PowerCLI Essentials

By: Chris Halverson

Overview of this book

Have you ever wished you could automatically get a report with all the relevant information about your VMware environments in exactly the format you want? Or that you could automate a crucial task that needs to be performed on a regular basis? Powerful Command Line Interface (PowerCLI) scripts do all these things and much more for VMware environments. PowerCLI is a command-line interface tool used to automate VMware vSphere environments. It is used to handle complicated administration tasks through use of various cmdlets and scripts, which are designed to handle certain aspects of VSphere servers and to help you manage them. This book will show you the intricacies of PowerCLI through real-life examples so that you can discover the art of PowerCLI scripting. At the start, you will be taught to download and install PowerCLI and will learn about the different versions of it. Moving further, you will be introduced to the GUI of PowerCLI and will find out how to develop single line scripts to duplicate running tasks, produce simple reports, and simplify administration. Next, you will learn about the methods available to get information remotely. Towards the end, you will be taught to set up orchestrator and build workflows in PowerShell with update manager and SRM scripts.
Table of Contents (13 chapters)
PowerCLI Essentials
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 4. Windows Administration within VMware Administration

Taking a step back, you realize that the rest of the department overheard the whole ordeal with the boss. Your coworker walks over and says "Don't worry, we are all working hard to make that so-called "office renovation" a big joke. The management knows you created the report and has been saving his job for years now. We have been asked to build a proper DevOps environment for the company with the $150k and you're likely going to be asked to lead it." Then you ask, "How do you know that?". The coworker quickly retorts, "I saw the pink slip on the boss's desk" he giggles. "It has been a long time coming."

Brinngg…, as you hear your desk phone ring, you pick up and say "Hello" followed by "Sure, Mr. Mitchells, I'll be right up." As the elevator moves up 10 floors to the CIO's floor, you reassure yourself that this is what the coworker was talking about. As you enter the giant corner office, you see the CIO and the CFO sitting and...