What’s New In PowerCLI 5.0                      Jonathan Medd
Also known as…..                   What’s New in                   PowerCLI 4.1 and                   5.0 in the 2nd half ...
New in PowerCLI 5.0Summary  • License Manager snapin  • Image Builder Snapin  • Auto Deploy Snapin  • Update Manager Power...
PowerCLI 5.0 Summary
Also new in 2nd half of 2011  • VI Property Module  • vSphere Distributed Switch    PowerCLI Snapin released as a    Fling...
License Manager Snapin• Requires vCenter 5.0 or later• Currently contains one cmdlet, Get-  LicenseDataManager• Add.PSSnap...
Get-LicenseDataManager Examples1) Query Licenses$licenseDataManager = Get-LicenseDataManager$licenseDataManager.QueryEntit...
Image Builder
Image Builder
Image Builder
Image Builder Snapin• Requires vCenter 5.0 or later• Contains cmdlets for managing depots, image  profiles, and VIBs• Add....
Image Builder
Image Builder
Image Builder
AutoDeploy
AutoDeploy Snapin• Requires vCenter 5.0 or later• Contains cmdlets that provide an interface to  VMware Auto Deploy for pr...
Auto Deploy & Image Builder – where’s the GUI?• There is no GUI (yet) for managing either Auto   Deploy or Image Builder• ...
Image Builder and Auto Deploy PowerPack• Alan Renouf has created a PowerGUI  PowerPack for Image Builder and Auto Deploy• ...
Image Builder and Auto Deploy Demo
Update Manager PowerCLI 5.0• Requires vCenter 5.0 or later• Does NOT work with downlevel versions of  vCenter – similar to...
Update Manager PowerCLI 5.0 – What’s New?
vSphere 5.0 New Features - PowerCLI Support• Storage DRS (experimental)  • Creating virtual machines and hard disks     on...
PowerCLI 5.0 – Incremental Updates· Cloning templates with New-Template.· Copying files and folders from and to the guest ...
Also new in 2nd half of 2011    • VI Property Module    • vSphere Distributed Switch      PowerCLI Snapin released as a   ...
What is a PowerShell Module?• A collection of files containing functions, scripts etc and possibly other  files such as th...
Why Bother with a PowerShell             Module?• Makes sharing of groups of functions and scripts easy• Simple XCOPY styl...
VI Property Module• Currently contains 47 custom VI Properties• Expanding in number all the time• Maintained at www.lucd.i...
What is a VI Property?• Create custom properties that  persist per PowerCLI session
VI Property Module• New cmdlet Get-VIProperty displays VI Properties in existing  session• Module contains VI properties f...
vSphere Distributed Switch PowerCLI cmdlets• The no.1 most requested missing feature from  PowerCLI• Community effort from...
vSphere Distributed Switch PowerCLI cmdlets
vSphere Distributed Switch PowerCLI cmdlets
PowerCLI 5.0 Poster
Resources• Image Builder – Image Builder• How to run ESXi stateless with vSphere Auto  Deploy – Gabe’s Virtual World• Alan...
What's New in PowerCLI 5.0
What's New in PowerCLI 5.0
What's New in PowerCLI 5.0
Upcoming SlideShare
Loading in …5
×

What's New in PowerCLI 5.0

4,916 views
4,821 views

Published on

What's New in PowerCLI 5.0

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,916
On SlideShare
0
From Embeds
0
Number of Embeds
2,810
Actions
Shares
0
Downloads
86
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

What's New in PowerCLI 5.0

  1. 1. What’s New In PowerCLI 5.0 Jonathan Medd
  2. 2. Also known as….. What’s New in PowerCLI 4.1 and 5.0 in the 2nd half of 2011
  3. 3. New in PowerCLI 5.0Summary • License Manager snapin • Image Builder Snapin • Auto Deploy Snapin • Update Manager PowerCLI 5.0 • No change to View PowerCLI • Support for new vSphere 5.0 features, such as Storage DRS • Incremental updates to existing cmdlets
  4. 4. PowerCLI 5.0 Summary
  5. 5. Also new in 2nd half of 2011 • VI Property Module • vSphere Distributed Switch PowerCLI Snapin released as a Fling • PowerCLIMan
  6. 6. License Manager Snapin• Requires vCenter 5.0 or later• Currently contains one cmdlet, Get- LicenseDataManager• Add.PSSnapin VMware.VimAutomation.License
  7. 7. Get-LicenseDataManager Examples1) Query Licenses$licenseDataManager = Get-LicenseDataManager$licenseDataManager.QueryEntityLicenseData()2) Add Licenses$licenseData = New-Object VMware.VimAutomation.License.Types.LicenseData$licenseKeyEntry = New-ObjectVmware.VimAutomation.License.Types.LicenseKeyEntry$licenseKeyEntry.TypeId = "vmware-vsphere”$licenseKeyEntry.LicenseKey = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"$licenseData.LicenseKeys += $licenseKeyEntry$licenseDataManager.UpdateAssociatedLicenseData($hostContainer.Uid, $licenseData)
  8. 8. Image Builder
  9. 9. Image Builder
  10. 10. Image Builder
  11. 11. Image Builder Snapin• Requires vCenter 5.0 or later• Contains cmdlets for managing depots, image profiles, and VIBs• Add.PSSnapin VMware.ImageBuilder
  12. 12. Image Builder
  13. 13. Image Builder
  14. 14. Image Builder
  15. 15. AutoDeploy
  16. 16. AutoDeploy Snapin• Requires vCenter 5.0 or later• Contains cmdlets that provide an interface to VMware Auto Deploy for provisioning physical hosts with ESXi software• Add.PSSnapin VMware.DeployAutomation
  17. 17. Auto Deploy & Image Builder – where’s the GUI?• There is no GUI (yet) for managing either Auto Deploy or Image Builder• Time to learn PowerShell!• Or……
  18. 18. Image Builder and Auto Deploy PowerPack• Alan Renouf has created a PowerGUI PowerPack for Image Builder and Auto Deploy• http://www.virtu-al.net/2011/09/15/image- builder-and-auto-deploy-powerpack/
  19. 19. Image Builder and Auto Deploy Demo
  20. 20. Update Manager PowerCLI 5.0• Requires vCenter 5.0 or later• Does NOT work with downlevel versions of vCenter – similar to previous releases• Update Manager PowerCLI 4.x will not work with Update Manager 5.0
  21. 21. Update Manager PowerCLI 5.0 – What’s New?
  22. 22. vSphere 5.0 New Features - PowerCLI Support• Storage DRS (experimental) • Creating virtual machines and hard disks on datastore clusters and defining anti- affinity rules• ESXi Firewall
  23. 23. PowerCLI 5.0 – Incremental Updates· Cloning templates with New-Template.· Copying files and folders from and to the guest operating system throughthe Copy-VMGuestFile cmdlet.· Joining domains through the Get-VMHostAuthentication and Set-VMHostAuthentication cmdlets.· Joining ESX hosts (version 4.1 and later) into an active directory through theGet-VMHostAuthentication and Set-VMHostAuthentication cmdlets.· Retrieving vCenter Server users and groups through the Get-VIAccountcmdlet.· Support for vCenter Servers in linked mode through the Connect-VIServercmdlet.· Retrieving object properties through the Get-VIProperty cmdlet.· Moving virtual appliances through the Move-VApp cmdlets.· Importing compressed and chunked files through the Import-VApp cmdlet.· Importing and exporting virtual appliances in OVA format.· Support for the SSPI passthrough feature of VIX.
  24. 24. Also new in 2nd half of 2011 • VI Property Module • vSphere Distributed Switch PowerCLI Snapin released as a Fling • PowerCLIMan
  25. 25. What is a PowerShell Module?• A collection of files containing functions, scripts etc and possibly other files such as the manifest to make it more professional• Stored within a folder as a subfolder of the Modules location. Can be found via $env:PSModulePath• Contents made accessible to the user via the Import-Module cmdlet
  26. 26. Why Bother with a PowerShell Module?• Makes sharing of groups of functions and scripts easy• Simple XCOPY style deployment of the module folder either internally or publishing to an external website• Make your commonly used functions available to yourself without ‘Profile Bloat’ – they are available as and when you need them from a module
  27. 27. VI Property Module• Currently contains 47 custom VI Properties• Expanding in number all the time• Maintained at www.lucd.info
  28. 28. What is a VI Property?• Create custom properties that persist per PowerCLI session
  29. 29. VI Property Module• New cmdlet Get-VIProperty displays VI Properties in existing session• Module contains VI properties for: – Cluster – Datastore – Harddisk – PhysicalNic – Portgroup – ScsiControler – ScsiLun – Snapshot – VirtualMachine – VMHostCreate your own and submit them for addition to themodule.
  30. 30. vSphere Distributed Switch PowerCLI cmdlets• The no.1 most requested missing feature from PowerCLI• Community effort from LucD to fill the gap• Community effort available as a module in the PowerCLI Book• Now released as a snapin as a VMware Fling• So NOT supported (yet) – Does not work with PowerCLI 5.0 (yet) – 32bit only
  31. 31. vSphere Distributed Switch PowerCLI cmdlets
  32. 32. vSphere Distributed Switch PowerCLI cmdlets
  33. 33. PowerCLI 5.0 Poster
  34. 34. Resources• Image Builder – Image Builder• How to run ESXi stateless with vSphere Auto Deploy – Gabe’s Virtual World• Alan Renouf on PowerScripting to talk What’s New in PowerCLI 5.0.

×