Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 1007 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 1007 Bytes

PowerShell Module Starter

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.

Creating your own module

  • 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