If you receive an error stating: "PackageManagement\Install-Package : Authenticode issuer 'CN=VeriSign Class 3 Public Primary Certification Authority - G5, OU="(c) 2006 VeriSign, Inc. Install-Module -Name -RequiredVersion 10.909Ĭlick Yes to proceed and in a few more moments you will see the program installing the related VMWare package. Since the script requires the module also make sure it's the latest version (as of October 2021) installed via this command:
VMWARE VCENTER VERSION HOW TO
SEE: Microsoft PowerShell: Learn how to automate your workday (TechRepublic Academy) It will take a few moments and you'll then need to click Yes to proceed, and in a few more moments you will see the program installing the related VMWare.PowerCLI packages. If you get an error that you need NuGet provider version 2.8.201 just click Yes and the process will download and install it for you. Install the VMware PowerCLI module using this comment within the PowerShell ISE Window: Run Windows PowerShell ISE as Administrator (you can also use regular PowerShell, but I find ISE best for maximum results as well as error evaluation). Use Windows 10 (it's theoretically possible to run this in Windows 7, but you may experience headaches with outdated PowerShell versions since this script requires PowerShell 4.0 at minimum). You can copy and paste it to a local file called VMware_Inventory.ps1, for instance. My colleague Brad Doran, senior technical account manager at Amazon Web Services, provided me this script and I am using it here with his permission.
This VMware-based PowerShell script can help make collecting your inventory data quick and easy.