Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mikepruett3/ps-vmtools

Custom PowerShell module for use with VMware's PowerCLI
https://github.com/mikepruett3/ps-vmtools

powercli powershell vmware

Last synced: about 1 month ago
JSON representation

Custom PowerShell module for use with VMware's PowerCLI

Awesome Lists containing this project

README

        

# PowerShell VMware Tools (ps-vmtools)

Module create to include custom functions that work with VMWare's PowerCLI. For use with other cmdlets and scripts.

## Installation

> NOTE Some of the functions are still using PowerNSX. As such you will need the following versions of PowerCLI installed:
>
> VMware.PowerCLI Version 6.5.4.7155375

Use the following to install the specific version of PowerCLI

```powershell
Install-Module -Name VMware.PowerCLI -RequiredVersion 6.5.4.7155375
```

Clone the repository into your **$Home\Documents\WindowsPowerShell\Modules** folder (create the Modules folder if you dont have one already)

```powershell
cd $Home\Documents\WindowsPowerShell\Modules\
git clone [email protected]:mikepruett3/ps-vmtools.git
```

Then you can import the custom module into your running shell...

```powershell
Import-Module ps-vmtools
```

## Usage

### Get-VMList

A function that connects to the specified vCenter, and retrieves a filtered list of VM's

```powershell
Get-VMList -Server "Hostname" -Credential "Username" -Filter "Partial Name to search for"
```

*Example*

```powershell
Get-VMList -Server vcenter.example.com -Credential [email protected] -Filter "*TEMP*"
```