Creating a PowerShell Module Manifest and Importing our Custom Module
Click the toggle below to show the full source code of the completed Module Manifest:
GreetMe.psd1 - Completed Source Code
In this lesson, we're going to be creating our PowerShell module manifest file, and this is any file with the psd1 extension. Now, I want you to know that you can automatically create this by using the new module manifest. Yeah, if I do that, and I give it a path and just call it greet me 2. psd1. This is going to create a manifest for us, but there's a couple of things I don't like about this. For example, we lose our ability to automatically dot source inside of our public and private folders.
We have to actually call them out one by one. So under functions to export, I would have to go here to greet get greeting message and paste that directly in here. It's not the end of the world, but it's not the way that I want to set it up and also has a lot of information that we don't frankly that we frankly do not need.
So I'm just going to delete this and we're just going to create this guy manually. So let's go to greetme. psd1 and I have a link to the documentation here. So if we copy this link and I open my web browser and we browse through this link, what's going to happen is we're going to get all of the actual parameters that we can pass this.
Okay. And we're just going to be using some of these. But I just wanted you to be aware that here's the full list if you want to do this yourself or you want to add you know, specific things in here. So…
No comments yet. Add the first comment to start the discussion.