|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| If you are not running windows 2008/Windows 7 and don't have PowerShell (Posh) installed then go get it from Microsoft's [http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx PowerShell landing page] | | If you are not running windows 2008/Windows 7 and don't have PowerShell (Posh) installed then go get it from Microsoft's [http://www.microsoft.com/windowsserver2003/technologies/management/powershell/default.mspx PowerShell landing page] |
| | |
| It is nowadays also offered via Windows Update as an optional update. | | It is nowadays also offered via Windows Update as an optional update. |
| Then in order to manage your virtual infrastructure you will need the [[VI Toolkit for windows]].
| |
|
| |
|
| | Then in order to manage your virtual infrastructure you will need the [[VI Toolkit for windows]] and then go to the [[PowerCLI]] page. |
|
| |
|
|
| |
|
|
| |
|
| ==== Learning VI-Toolkit Powershell ==== | | |
| | ==== Learning Powershell ==== |
|
| |
|
| * [[BEGINNERS PAGE | Beginners page]] | | * [[BEGINNERS PAGE | Beginners page]] |
Line 12: |
Line 14: |
| * [[Learning Powershell]] | | * [[Learning Powershell]] |
|
| |
|
| * [[Virtu-Al: Lesson 1 Time Source]] | | * [[Powershell techniques and tips]] |
| | |
| * [[Virtu-Al: Lesson 2 Service and Firewall Configuration]]
| |
| | |
| * [[Virtu-Al: Lesson 3 Networking]]
| |
| | |
| * [[Virtu-Al: Lesson 4 Portgroups]]
| |
| | |
| | |
| * [[Powershell CMDLET list]] (thank you Alan Renouf for the idea and initial work)
| |
| | |
| * [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions]
| |
| | |
| * [http://communities.vmware.com/message/1381785 PowerCLI Poster with all the available cmdlets]
| |
| | |
| ==== PowerCLI Oneliners ====
| |
| [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]]
| |
| * [[PowerCLI Oneliners: Events]]
| |
| * [[PowerCLI Oneliners: Host Configuration]]
| |
| * [[PowerCLI Oneliners: VM Configuration]]
| |
| * [[PowerCLI Oneliners: Storage]]
| |
| | |
| | |
| ==== PowerCLI scripts (not categorized) ====
| |
| | |
| * [http://virtualfuture.info/2008/07/powershell-remove-connected-iso/ Remove connected iso's]
| |
| | |
| * [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]]
| |
| ===== 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]] | | * [[Powershell Tools]] |
|
| |
|
| * [[PowerCLI: Factory reset of ESXi]]
| |
|
| |
|
|
| |
|
| [[Category: Powershell]][[Category: VI-Toolkit]] | | [[Category: Powershell]][[Category: VI-Toolkit]] |
If you are not running windows 2008/Windows 7 and don't have PowerShell (Posh) installed then go get it from Microsoft's PowerShell landing page
It is nowadays also offered via Windows Update as an optional update.
Then in order to manage your virtual infrastructure you will need the VI Toolkit for windows and then go to the PowerCLI page.
Learning Powershell