PowerCLI: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 123: | Line 123: | ||
* [[PowerCLI: Daily Report]] | * [[PowerCLI: Daily Report]] | ||
* [[PowerCLI: Get number of vCPU | * [[PowerCLI: Get number of vCPU%27s used in cluster]] | ||
* [[PowerCLI: Factory reset of ESXi]] | * [[PowerCLI: Factory reset of ESXi]] | ||
Line 144: | Line 144: | ||
* [[PowerCLI: Update ESXi Root Password with Password Generator]] | * [[PowerCLI: Update ESXi Root Password with Password Generator]] | ||
* [[PowerCLI: enable SSH GUI for vSphere clusters]] | |||
==== Storage ==== | ==== Storage ==== | ||
Line 156: | Line 158: | ||
* [[PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster]] | * [[PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster]] | ||
* [https://labs.vmware.com/flings/powercli-cmdlet-for-nfs PowerCLI cmdlet for NFS] | |||
==== Networking ==== | ==== Networking ==== |
Latest revision as of 21:10, 29 November 2015
PowerCLI is the "new' name for what used to be called the Virtual Infrastructure Toolkit, or VI Toolkit in short. In order to manage your virtual infrastructure on windows using scripts you will most likely want to use the VI Toolkit for windows and PowerShell
Learning VI-Toolkit Powershell
PowerCLI videos
- Patching ESX with PowerCLI 4.0 U1
- Invoke-VM with PowerCLI 4.0 U1
- #vBrownBag Follow-Up – PowerCLI 201 w/ Jake Robinson
PowerCLI Oneliners
Hugo Peeters started with posting so called oneliners to indicate how powerful the VI-Toolkit on Powershell is. After a while this got picked up by others as sort of a sport to see if you can do it in one line. Below is a collection of links with oneliners from great powershell scripters. These pages now contains links to oneliners from Hugo Peeters, Alan Renouf, get-admin.com and Arne Fokkema
- PowerCLI Oneliners: Statistics
- PowerCLI Oneliners: Events
- PowerCLI Oneliners: Host Configuration
- PowerCLI Oneliners: VM Configuration
- PowerCLI Oneliners: Storage
- ESX PowerCLI One-Liners (vWiki)
PowerCLI scripts
integration
not categorized
- Add/Remove active directory user accounts who belong to a particular security group on all ESX hosts
VM Configuration
Host Management
Integration with ESXi shell
Storage
Networking
dvSwitch
- PowerCLI: dvPortgroup ports report
- PowerCLI: Disable Netflow for a VDPortgroup or a number of VDPortGroups