PowerShell: Difference between revisions

From VI-Toolkit
Jump to navigation Jump to search
(Reorganizing our Powershell oneliner scripts)
m (Reshuffle links in order)
Line 50: Line 50:


* [[Introduction to scripting vi using perl or powershell]]
* [[Introduction to scripting vi using perl or powershell]]
* [[Restart VMware Tools on all Windows VM's]]


* [[Manage VMware Server with PowerShell]]
* [[Manage VMware Server with PowerShell]]
Line 57: Line 55:
* [[Introduction to the vSphere SDK in Java and C#]]
* [[Introduction to the vSphere SDK in Java and C#]]


* [[PowerCLI: Report every VM added to vCenter in the last 30 days]]
* [[PowerCLI: Oneliners]]
===== VM Configuration =====
 
* [[Restart VMware Tools on all Windows VM's]]


* [[PowerCLI: Update VMwaretools without a reboot]]
* [[PowerCLI: Update VMwaretools without a reboot]]
Line 64: Line 65:


* [[PowerCLI: Get Virtual Machine disk usage]]
* [[PowerCLI: Get Virtual Machine disk usage]]
===== Host Management =====
* [[PowerCLI: Report every VM added to vCenter in the last 30 days]]


* [[PowerCLI: Get Virtual Machine total size]]
* [[PowerCLI: Get Virtual Machine total size]]
Line 74: Line 78:


* [[PowerCLI: Daily Report]]
* [[PowerCLI: Daily Report]]
* [[PowerCLI: Oneliners]]


==== General powershell ====
==== General powershell ====

Revision as of 22:26, 19 August 2009

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.



Learning VI-Toolkit Powershell


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


Scripts on other locations

VM Configuration
Host Management

General powershell

Powershell tools