Cargando…

Learning PowerCLI.

""Learning PowerCLI"" is written in a friendly and practical style with a focus on getting you started and automating daily tasks quickly and efficiently. If you manage or administrate a vSphere environment, and want to make that easier and more efficient, then this book is for y...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Van den Nieuwendijk, Robert
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Packt Publishing, 2014.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Introduction to PowerCLI; Downloading and installing PowerCLI; Downloading PowerCLI; Installing PowerCLI; Modifying the PowerShell execution policy; Connecting and disconnecting servers; Connecting to a server; Connecting to multiple servers; Suppressing certificate warnings; Disconnecting from a server; Retrieving the PowerCLI Configuration; Using the credential store; Retrieving a list of all of your virtual machines; Suppressing displaying deprecated warnings.
  • Using wildcard charactersFiltering objects; Using comparison operators; Using aliases; Retrieving a list of all of your hosts; Displaying the output in a grid view; Summary; Chapter 2: Learning Basic PowerCLI Concepts; Using the Get-Command, Get-Help, and Get-Member cmdlets; Using Get-Command; Using Get-VICommand; Using Get-Help; Using Get-PowerCLIHelp; Using Get-PowerCLICommunity; Using Get-Member; Using providers and PSdrives; Using providers; Using PSDrives; Using the vSphere PowerCLI Inventory Provider; Using the vSphere PowerCLI Datastore Provider.
  • Copying files between a datastore and your PCUsing arrays and hash tables; Creating calculated properties; Using raw API objects with ExtensionData or Get-View; Using the ExtensionData property; Using the Get-View cmdlet; Using Managed Object References; Using the Get-VIObjectByVIView cmdlet; Extending PowerCLI objects with the New-VIProperty cmdlet; Working with vSphere folders; Summary; Chapter 3: Working with Objects in PowerShell; Using objects, properties, and methods; Using methods; Expanding variables and subexpressions in strings; Understanding what expands a string.
  • Expanding a string when it is usedUsing here-strings; Using the pipeline; Using the ByValue parameter binding; Using the ByPropertyName parameter binding; Using the PowerShell object cmdlets; Using the Select-Object cmdlet; Using the Where-Object cmdlet; Using the ForEach-Object cmdlet; Using the Sort-Object cmdlet; Using the Measure-Object cmdlet; Rounding a value; Using the Group-Object cmdlet; Using the Compare-Object cmdlet; Using the Tee-Object cmdlet; Creating your own objects; Using the New-Object cmdlet; Using a hash table to create an object.
  • Creating objects using the Select-Object cmdletAdding properties to an object with Add-Member; Using type declarations; Using COM objects; Summary; Chapter 4: Managing vSphere Hosts with PowerCLI; Adding a host to a VMware vCenter Server; Creating a datacenter; Creating a cluster; Adding a host; Enabling and disabling maintenance mode; Working with host profiles; Creating a host profile; Attaching the host profile to a cluster or a host; Testing the host profile for compliance; Applying a host profile to a host or cluster; Using host profile answer files; Exporting a host profile.