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: 12 months ago
JSON representation
Custom PowerShell module for use with VMware's PowerCLI
- Host: GitHub
- URL: https://github.com/mikepruett3/ps-vmtools
- Owner: mikepruett3
- License: mit
- Created: 2024-07-29T18:53:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-30T23:23:35.000Z (over 1 year ago)
- Last Synced: 2025-01-22T12:32:28.709Z (about 1 year ago)
- Topics: powercli, powershell, vmware
- Language: PowerShell
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 git@github.com: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 administrator@vsphere.local -Filter "*TEMP*"
```