Main | Contact | Blog | Documentation

PowerShell Framework

The project dedicated to empowering your PowerShell scripting.

How to create a new PSFProject tempate for a new PowerShell project

  1. Create a local Repository Example c:\PsScriipts\Repository
  2. Install GitHub Desktop from here: https://desktop.github.com/
  3. In GitHub Desktop click File Create a new repository

IMPORTANT: Directory must not already exist! If you have pre-created a directory for your code GitHub will throw an error.

Once GitHub creates your new module directory this is what it will look like.

  1. Open a new PS window
  2. Change directory to that folder “C:\PSScripts\Git Repository\YourModuleName” cd
  3. Run imt PSFProject -NoFolder

    NOTE: imt is an alias for Invoke-PSMDTemplate. Using the -nofolder will skip the folder creation because the folder has already been created by GitHub Desktop

  4. Enter value for parameter ‘name’: YourModuleName
  5. Enter value for parameter ‘description’: This is a test PowerShell module

Below is the output in the directory you will see after you invoke the creation of your new template. This template will be used for submitting your code to AzureDevOps for validation testing. You will want to do this before real work release of your code.

  1. In explorer go up one directory to your Repositor and right click on your Test module folder and open in your programming application (VS Code, Visual Studio, etc.)

    NOTE: Once your code is opened in your favorite developmental toold you can develop away until you have all of your code the way you like it. Since GitHub Desktop is already connected to your local code path all new code changes will be detected.

  2. Once you are finished with your code you can save your code changes.
  3. Commit your changes with your comments.
  4. Lastly publish your code to your GitHub repository.

Version: 1.0 Written and Updated 2020-04-29