This is a simple template for a PowerShell module, based on a couple of blog posts I found on the internet. The official documentation is also very helpful.
- Fork or clone the repository
- Replace
StarterModule
with your own module name - Find the
TODO:
s inside the files- RootModule name
- Module GUID
- Author name
- Copyright statement in manifest (
.psd1
) - Copyright statement in
LICENSE
(if you want to publish it on GitHub and/or PowerShell Gallery)
- Add private and public functions
- Place module inside one of
$env:PSModulePath
- Run
Import-Module <YourModule>
- ???
- Profit