Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mikepruett3/ps-vmtools
- Owner: mikepruett3
- License: mit
- Created: 2024-07-29T18:53:02.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-07-29T20:10:34.000Z (5 months ago)
- Last Synced: 2024-07-30T02:16:46.230Z (5 months ago)
- Topics: powercli, powershell, vmware
- Language: PowerShell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- 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.7155375Use 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*"
```