
Difference between PowerShell 7 and Windows PowerShell 5.1
Which development environment should you use (PowerShell ISE vs. Visual Studio Code)?
Installation of PowerShell 7 and Visual Studio Code (Windows)
Structure of PowerShell cmdlets and parameters
What are Modules in PowerShell?
How to Install the VMware PowerCLI Module
Introduction of the cmdlets get-help and get-command
How do you find the appropriate cmdlet and how can you use it (Parameters, etc.)?
Connect to VMware vCenter with Connect-ViServer cmdlet
Set preferences with Set-PowerCLIConfiguration
What is the confirm parameter?
Querying virtual machines with get-vm
Explanation of PowerShell classics like...
Wildcard
pipeline
select-object
get-member
Comparison operators
where-object
sort-object
How to Start, Shutdown, and Reboot VMs with PowerCLI
How to create VM Snapshots with PowerCLI
Practical use of the help function
How to find stale Snapshots (using the Get-Date cmdlet and the AddDays method)
How to delete Snapshots
Reverting VMs to the time of the snapshot creation
Explanation of...
Copy-VMGuestFile: Copying files from local machine to VM with PowerCLI (or vice versa).
Invoke-VMScript: Remote execution of PowerShell, Bat or Bash code inside VMs via remote PowerCLI session.
Get-Credential: Creation of credentials objects.
How to Query and Expand Virtual Disks with PowerCLI (Windows)
Introduction of the ExpandProperty parameter (select-object)
Use case of Invoke-VMScript in practice
How to create new vDisks with the New-HardDisk cmdlet
Explanation of yellow PowerCLI warnings
How to automatically initialize a hard disk and create a partition on the operating system level (Windows)
How to create and delete virtual machines using PowerCLI
Introduction of the "WhatIf" parameter
Simultaneous creation of multiple VMs using an Excel/CSV file as the data source (bulk import)
Bulk creation of multiple similar VM's using a for loop
Increasing the level of automation by using VM Customization Specifications (automatic domain join, Windows activation, setting the time zone, etc.)
Automatic selection of the datastore with the most free space
Updating outdated VMware tools via PowerCLI
Introduction Nested attributes
How to export data with the PowerShell cmdlet Export-CSV
Introduction to creating HTML reports
Group sets of PowerShell code into regions
HTML Crash Course - Explanation of Tags
Basic CSS Crash Course
How to embed CSS code into PowerShell code?
Explanation of code for HTML report
Walk through the code of the actual PowerCLI report
Exercise: Query all snapshots in your vCenter that are older than 3 days
Creating the Basic Structure with ConvertTo-HTML
How to Export the Report with the PowerShell Cmdlet Out-File
Locating ISO files that are connected as a CD drive
How to disconnect the ISO files with PowerCLI
Querying all Datastores with less than 20 percent free space + Adding them to the HTML report
Explanation of Calculated Properties in PowerShell
Rounding numerical values with PowerShell
Adding general information about the VMware vSphere environment to the report (e.g. number of hosts, clusters, templates, etc.)
Introduction of PSCustomObjects
Output on console with write-host
Querying VMs with no VMware Tools or with an outdated version
Improvement of script quality:
Clean disconnect from vCenter (Disconnect-ViServer)
Appending the creation date to the report (Parameter Postcontent)
Adding the date to the file name + manipulation of date formats with PowerShell
Sending the HTML report via mail
Introduction to the Send-MailKitMessage module
Secure way to save credentials with PowerShell
Advantages and disadvantages of Export-CliXML
Daily Automatic Execution of PowerShell script using Windows Task Scheduler
Explanation of the PowerShell ExecutionPolicy
Learn PowerShell/PowerCLI to automate boring, repetitive workflows (e.g., roll out new virtual machines and update VMware tools).
What is PowerCLI?
The PowerCLI is a free PowerShell module that contains over 700 cmdlets (commands), which can be used to manage and automate VMware vSphere environments.
Course Overview:
Despite learning the PowerShell basics, this 3-hour long course will teach you how to use the PowerCLI module to make your day-to-day work as a VMware vSphere administrator easier. Specifically, you'll learn how to connect the shell to your vCenter, manage existing virtual machines, and roll out new ones. Especially by automating the VM creation process you can save a lot of time. I will also show you how to manage the virtual disks of VMs. There is a big advantage compared to the GUI: We can connect from the PowerShell session, through which we enlarge or create the hard disk, to the guest operating system of the VM. Here we can extend or initialize the partition on the operating system side via the command line. We will look at this using a Windows server as an example. Also, you will learn how to keep VMware tools up to date and how to find and clean up old snapshots. The highlight of the course is the creation of an HTML report. Here you will learn how to use PowerCLI to get the data you want from your vCenter or ESXi host. During the course, I will show you tips and tricks that you won't find in the documentation. So, what are you waiting for? Take your career to the next level and enroll in the course today.