Chapter 2.  Learning Basic PowerCLI Concepts

While learning something new, you always have to learn the basics first. In this chapter, you will learn some basic PowerShell and PowerCLI concepts. Knowing these concepts will make it easier for you to learn the advanced topics. We will cover the following topics in this chapter:

  • Using the Get-Command, Get-Help, and Get-Member cmdlets
  • Using providers and PSdrives
  • Using arrays and hash tables
  • Creating calculated properties
  • Using raw API objects with ExtensionData or Get-View
  • Extending PowerCLI objects with the New-VIProperty cmdlet
  • Working with vSphere folders

Using the Get-Command, Get-Help, and Get-Member cmdlets

There are some PowerShell cmdlets that everyone should know. Knowing these cmdlets will help ...

Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.