PowerShell: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Reorganizing our Powershell oneliner scripts |
||
Line 24: | Line 24: | ||
==== PowerCLI Oneliners ==== | ==== 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: Statistics]] |
Revision as of 21:09, 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
- Powershell CMDLET list (thank you Alan Renouf for the idea and initial work)
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
Scripts on other locations
- Add/Remove active directory user accounts who belong to a particular security group on all ESX hosts