O'Reilly logo

Learn PowerShell Toolmaking in a Month of Lunches by Don Jones and Jeffrey Hicks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.5. Using the database functions

Let’s put the MOLDatabase module to use. Here’s what we’re going to do:

  • Modify the MOLTools module from the previous chapter so that it internally loads the MOLDatabase module.
  • Create a function, in MOLTools, that reads computer names from the database and delivers them to Get-MOLSystemInfo. This will be an example of an input function, which we discussed at the outset of the book.
  • Create a function, in MOLTools, that takes the output from Get-MOLSystemInfo and saves that information back to the database. This will be an example of an output function, which we also discussed at the outset of the book, although in this case the output will be to a database rather than to the screen or some other visible ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required