Files
Brian Wuchner 248a86f0a2 Fixing instances of sort with sort-object
Fixes #535 - module using sort instead of sort-object causing unexpected behavior on powershell core/Linux.
Instead of only addressing the issue at hand, I looked for other instances of sort being used instead of sort-object for other modules within this repo and corrected those as well.  I think I got most of them, but feel free to raise another issue if you find another.  If the sort was in an example/help statement, or was inside the logic/process of the function, I replaced sort with sort-object.  In the one case where the sort was only applied to the output I removed the statement -- this way the function user can add the sort in their script and not have to sort output twice.  I changed a couple  select/where with select-object/where-object along the way as well just as I saw them.

Signed-off-by: Brian Wuchner <brian.wuchner@gmail.com>
2022-02-03 20:11:02 -05:00
..
2016-08-11 10:19:26 +03:00
2016-08-01 09:55:13 +03:00

powerclilogo VMware infrastructure Module

[Vi-Module.psm1] (https://github.com/vmware/PowerCLI-Example-Scripts/tree/master/Modules/Vi-Module)

To install this module, drop the entire 'Vi-Module' folder into one of your module directories.

The default PowerShell module paths are listed in the $env:PSModulePath environment variable.

To make it look better, split the paths in this manner $env:PSModulePath -split ';'

The default per-user module path is: "$env:HOMEDRIVE$env:HOMEPATH\Documents\WindowsPowerShell\Modules".

The default computer-level module path is: "$env:windir\System32\WindowsPowerShell\v1.0\Modules".

To use the module, type following command: Import-Module Vi-Module -Force -Verbose.

To see the commands imported, type Get-Command -Module Vi-Module.

For help on each individual cmdlet or function, run Get-Help CmdletName -Full [-Online][-Examples].

Vi-Module Cmdlets:

No Cmdlet Description
1 [Get-RDM] (http://www.ps1code.com/single-post/2015/10/16/How-to-get-RDM-Raw-Device-Mappings-disks-using-PowerCLi) Report all VM with their RDM disks
2 [Convert-VmdkThin2EZThick] (http://www.ps1code.com/single-post/2015/11/05/How-to-convert-Thin-Provision-VMDK-disks-to-Eager-Zeroed-Thick-using-PowerCLi) Inflate thin virtual disks
3 [Find-VcVm] (https://cloud.githubusercontent.com/assets/6964549/17361776/d5dff80e-597a-11e6-85a2-a782db875f78.png) Search VCenter VM throw direct connection to group of ESXi hosts. Thanks to VMGU.ru for the [article] (http://www.vmgu.ru/news/vmware-vcenter-how-to-find-powered-off)
4 [Set-PowerCLiTitle] (http://www.ps1code.com/single-post/2015/11/17/ConnectVIServer-deep-dive-or-%C2%ABWhere-am-I-connected-%C2%BB) Write connected VI servers info to PowerCLi window title bar
5 [Get-VMHostFirmwareVersion] (http://www.ps1code.com/single-post/2016/1/9/How-to-know-ESXi-servers%E2%80%99-BIOSFirmware-version-using-PowerCLi) Get a Firmware version and release date of your ESXi hosts
6 [Compare-VMHostSoftwareVib] (http://www.ps1code.com/single-post/2016/1/10/How-to-compare-installed-VIB-packages-between-two-or-more-ESXi-hosts) Compare installed VIB packages between two or more ESXi hosts
7 [Get-VMHostBirthday] (https://cloud.githubusercontent.com/assets/6964549/12399803/c8439dfa-be24-11e5-8141-09199caa301e.png) Get ESXi hosts' installation date. Thanks to Magnus Andersson for his [idea] (http://vcdx56.com/2016/01/05/find-esxi-installation-date/)
8 [Enable-VMHostSSH/Disable-VMHostSSH] (http://www.ps1code.com/single-post/2016/02/07/How-to-enabledisable-SSH-on-all-ESXi-hosts-in-a-cluster-using-PowerCLi) Enable/Disable SSH on all ESXi hosts in a cluster
9 [Set-VMHostNtpServer] (http://www.ps1code.com/single-post/2016/03/10/How-to-configure-NTP-servers-setting-on-ESXi-hosts-using-PowerCLi) Set NTP Servers setting on ESXi hosts
10 [Get-Version] (http://www.ps1code.com/single-post/2016/05/25/How-to-know-any-VMware-object%E2%80%99s-version-Use-GetVersion) Get VMware Virtual Infrastructure objects' version info: VM, ESXi Hosts, VDSwitches, Datastores, VCenters, PowerCLi, License Keys