|
|
| Line 1: |
Line 1: |
| PowerCLI is the "new' name for what used to be called the Virtual Infrastructure Toolkit, or VI Toolkit in short.
| | [[VI Toolkit]] |
| 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 ====
| | [[Vassert Linux SDK]] |
|
| |
|
| * [[Virtu-Al: Lesson 1 Time Source]]
| | [[VProbe Toolkit]] |
|
| |
|
| * [[Virtu-Al: Lesson 2 Service and Firewall Configuration]]
| | [[VIX]] |
|
| |
|
| * [[Virtu-Al: Lesson 3 Networking]]
| | [[vimsh]] |
|
| |
|
| * [[Virtu-Al: Lesson 4 Portgroups]]
| | [[VMware Virtual Disk Development Kit]] |
|
| |
|
| | [[VMware Icons]] |
|
| |
|
| * [[Powershell CMDLET list]] (thank you Alan Renouf for the idea and initial work)
| | [[vCenter Orchestrator]] |
|
| |
|
| * [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions]
| | ==== External links ==== |
|
| |
|
| * [http://communities.vmware.com/message/1381785 PowerCLI Poster with all the available cmdlets]
| | [http://blogs.vmware.com/vsphere/2012/02/introduction-to-the-vsphere-api-part-1.html Introduction to the vSphere API Part 1: Overview] |
|
| |
|
| * [http://communities.vmware.com/docs/DOC-12014 Workshop and demo scripts by Carter Shanklin]
| | [http://blogs.vmware.com/vsphere/2012/02/introduction-to-the-vsphere-api-part-2-object-model.html Introduction to the vSphere API Part 2: Object Model] |
|
| |
|
| * [http://blogs.vmware.com/vipowershell/2010/11/vmworld-2010-powercli-lab-manual-for-your-reading-pleasure-alton-yu.html VMworld 2010 PowerCLI lab manual]
| |
|
| |
|
| * [http://read.virtualizeplanet.com/?p=138 VirtualizePlanet PowerCLI lessons by Ricky El-Qasem]
| | [http://www.vmware.com/support/pubs/sdk_pubs.html VMware SDK landing page] a page that lists all of VMware SDK's |
| ===== PowerCLI videos =====
| |
|
| |
|
| * [[Patching ESX with PowerCLI 4.0 U1]]
| | ===== vCloud ===== |
| * [[Invoke-VM with PowerCLI 4.0 U1]]
| |
|
| |
|
| ==== PowerCLI Oneliners ====
| | [http://communities.vmware.com/community/developer/forums/vcloudapi VMware vCloud API forums] |
| [http://www.peetersonline.nl/index.php/about/ 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 [http://www.peetersonline.nl/index.php/about/ Hugo Peeters], [http://www.virtu-al.net Alan Renouf], [http://get-admin.com get-admin.com] and [http://ict-freak.nl Arne Fokkema] | |
|
| |
|
| * [[PowerCLI Oneliners: Statistics]]
| | [http://communities.vmware.com/community/beta/vcloudsdkphp VMware vCloud php SDK beta] |
| * [[PowerCLI Oneliners: Events]]
| |
| * [[PowerCLI Oneliners: Host Configuration]]
| |
| * [[PowerCLI Oneliners: VM Configuration]]
| |
| * [[PowerCLI Oneliners: Storage]]
| |
|
| |
|
| | [http://geekafterfive.com/2011/11/01/vcloud-apigui-throwdown/ vCloud API/GUI Throwdown (geekafterfive)] |
| | * Hot Cloning |
| | * Change VM networks |
| | * Change disks |
|
| |
|
| ==== PowerCLI scripts ====
| | [http://geekafterfive.com/2012/02/24/vcloud-apigui-throwdown-part-2/ vCloud API/GUI Throwdown: Part 2 (geekafterfive)] |
| ===== not categorized =====
| | * Hot Cloning vApps |
| | * Hot Modify connected VM network |
| | * Hot Modify Disk Size |
| | * Hot Modify Org Name! |
|
| |
|
| * [http://virtualfuture.info/2008/07/powershell-remove-connected-iso/ Remove connected iso's]
| | [[Category: SDK]] |
| | |
| * [http://communities.vmware.com/docs/DOC-6973 HBA Load Balancer]
| |
| | |
| * [http://communities.vmware.com/docs/DOC-6972 Deploy and Redeploy vm's (from templates) from a .csv]
| |
| | |
| * [http://communities.vmware.com/docs/DOC-9610 Resourcepool Reservation Script]
| |
| | |
| * [http://communities.vmware.com/docs/DOC-7090 Add/Remove active directory user accounts who belong to a particular security group on all ESX hosts]
| |
| | |
| * [http://mikedatl.typepad.com/mikedvirtualization/2008/10/quick-migration.html Quick migration]
| |
| | |
| * [[Out-Dataset Cmdlet]]
| |
| | |
| * [[Introduction to scripting vi using perl or powershell]]
| |
| | |
| * [[Manage VMware Server with PowerShell]]
| |
| | |
| * [[Introduction to the vSphere SDK in Java and C#]]
| |
| | |
| * [[PowerCLI: Oneliners]]
| |
| | |
| * [http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html How to run PowerCLI scripts from vCenter alarms]
| |
| ===== VM Configuration =====
| |
| | |
| * [[Restart VMware Tools on all Windows VM's]]
| |
| | |
| * [[PowerCLI: Update VMwaretools without a reboot]]
| |
| | |
| * [[PowerCLI: Add configuration details to VMX]]
| |
| | |
| * [[PowerCLI: Scripted edit of a VMX file]]
| |
| | |
| * [[PowerCLI: Get Virtual Machine disk usage]]
| |
| | |
| * [[PowerCLI: Set CPU Identification Mask]]
| |
| | |
| * [[PowerCLI: Force a VM to enter BIOS setup on next boot]]
| |
| | |
| * [[PowerCLI: Set VM Snapshot location]]
| |
| | |
| * [[PowerCLI: Resolving improper memory limits on your virtual machines]]
| |
| | |
| * [[PowerCLI: Dump virtual machine info as XML]]
| |
| | |
| * [[PowerCLI: Match VM and Windows hard disks]]
| |
| | |
| * [[PowerCLI: Determine vSwitch vmnic for your VM]]
| |
| | |
| ===== Host Management =====
| |
| | |
| * [[PowerCLI: Report every VM added to vCenter in the last 30 days]]
| |
| | |
| * [[PowerCLI: Get Virtual Machine total size]]
| |
| | |
| * [[PowerCLI: Export and import customization profiles]]
| |
| | |
| * [[PowerCLI: Export Task and eventlogs to file using TaskHistoryCollector]]
| |
| | |
| * [[PowerCLI: Snap reminder]]
| |
| | |
| * [[PowerCLI: Daily Report]]
| |
| | |
| * [[PowerCLI: Get number of vCPU's used in cluster]]
| |
| | |
| * [[PowerCLI: Factory reset of ESXi]]
| |
| | |
| * [[PowerCLI: Cluster Load]]
| |
| | |
| * [[PowerCLI: dvPortgroup ports report]]
| |
| | |
| [[Category: Powershell]][[Category: VI-Toolkit]]
| |