Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
How To Save Your Time With PowerCLI<br />Jonathan Medd<br />
Pick the right management tool for you or the situation<br />
Do You Manage Any Of These Technologies?<br />
Write your own script or function help, for you or someone else<br />They will thank you, and you will be pleased one day ...
Help Demo<br />
Digitally Sign Your Scripts<br />Save time and costly mistakes by helping prevent unauthorised changes<br />Most IDEs will...
Be Green, Create Advanced Functions as Reusable Code<br />
Advanced Functions - Features<br /><ul><li>Add –Confirm, -WhatIfcapabilities
Parameter Attributes
Mandatory, Parameter Sets, Accept Pipeline Input, Help Message, Validation</li></li></ul><li>Advanced Functions - Demo<br />
Competition Time – PowerCLI Book Giveaway <br />Where is PowerCLI Guru Alan Renouf originally from?<br /><ul><li>France
Netherlands
Jersey
Outer Space</li></li></ul><li>Modules Make Distributing Your Code Easier<br />VS<br />
What is a PowerShell Module?<br />A collection of files containing functions, scripts etc and possibly other files such as...
Why Bother with a PowerShell Module?<br />Makes sharing of groups of functions and scripts easy<br />Simple XCOPY style de...
Make Your First Module<br />Create two functions<br />Save them into a *.psm1 file to the module folder<br />Import them f...
Make Your First Module - Demo<br />
PowerCLIBook Module - Demo<br />
If you borrow it, make sure you test it!<br />Share back your own scripts / solutions. You know how good it was when you f...
Good places to start borrowing<br />Virtu-Al.net<br />LucD.info<br />VMware PowerCLI Community Site<br />
Borrowed Examples<br />
PowerGUI VMware PowerPack<br />
Use in combination with VMware Community PowerPack to kick start your PowerCLI scripting<br />
PowerGUI Quick Overview<br />
Automate Deployment of ESXi<br />At a minimum use PowerCLI to create a standard host config<br />For bonus points use addi...
Upcoming SlideShare
Loading in …5
×

Save Time With PowerCLI

2,813 views

Published on

Published in: Technology, Art & Photos
  • Be the first to comment

  • Be the first to like this

Save Time With PowerCLI

  1. 1. How To Save Your Time With PowerCLI<br />Jonathan Medd<br />
  2. 2.
  3. 3. Pick the right management tool for you or the situation<br />
  4. 4. Do You Manage Any Of These Technologies?<br />
  5. 5.
  6. 6.
  7. 7.
  8. 8.
  9. 9. Write your own script or function help, for you or someone else<br />They will thank you, and you will be pleased one day that you did it too<br />
  10. 10. Help Demo<br />
  11. 11.
  12. 12. Digitally Sign Your Scripts<br />Save time and costly mistakes by helping prevent unauthorised changes<br />Most IDEs will sign the script for you<br />
  13. 13. Be Green, Create Advanced Functions as Reusable Code<br />
  14. 14. Advanced Functions - Features<br /><ul><li>Add –Confirm, -WhatIfcapabilities
  15. 15. Parameter Attributes
  16. 16. Mandatory, Parameter Sets, Accept Pipeline Input, Help Message, Validation</li></li></ul><li>Advanced Functions - Demo<br />
  17. 17. Competition Time – PowerCLI Book Giveaway <br />Where is PowerCLI Guru Alan Renouf originally from?<br /><ul><li>France
  18. 18. Netherlands
  19. 19. Jersey
  20. 20. Outer Space</li></li></ul><li>Modules Make Distributing Your Code Easier<br />VS<br />
  21. 21. What is a PowerShell Module?<br />A collection of files containing functions, scripts etc and possibly other files such as the manifest to make it more professional<br />Stored within a folder as a subfolder of the Modules location. Can be found via $env:PSModulePath<br />Contents made accessible to the user via the Import-Module cmdlet<br />
  22. 22. Why Bother with a PowerShell Module?<br />Makes sharing of groups of functions and scripts easy<br />Simple XCOPY style deployment of the module folder either internally or publishing to an external website<br />Make your commonly used functions available to yourself without ‘Profile Bloat’ – they are available as and when you need them from a module<br />
  23. 23. Make Your First Module<br />Create two functions<br />Save them into a *.psm1 file to the module folder<br />Import them for use into your session<br />Go!<br />
  24. 24. Make Your First Module - Demo<br />
  25. 25. PowerCLIBook Module - Demo<br />
  26. 26.
  27. 27. If you borrow it, make sure you test it!<br />Share back your own scripts / solutions. You know how good it was when you found something useful, give someone else that same experience.<br />
  28. 28. Good places to start borrowing<br />Virtu-Al.net<br />LucD.info<br />VMware PowerCLI Community Site<br />
  29. 29. Borrowed Examples<br />
  30. 30. PowerGUI VMware PowerPack<br />
  31. 31. Use in combination with VMware Community PowerPack to kick start your PowerCLI scripting<br />
  32. 32. PowerGUI Quick Overview<br />
  33. 33.
  34. 34. Automate Deployment of ESXi<br />At a minimum use PowerCLI to create a standard host config<br />For bonus points use additional technologies to automate further:<br /><ul><li>Kickstart
  35. 35. Host Profiles
  36. 36. AutoDeploy</li></li></ul><li>In Jeffrey We Trust<br />

×