Skip to content

shanemhartley/Fun-PowerShell-Scripts

Repository files navigation

PowerShell Scripts!

I've written everything from scratch.

I try to keep script files & functions looking as native to real PowerShell commands as possible.

Help files are included in each script and can be accessed by running Get-Help.

Scripts can also be imported as modules by including their respective .psm1 and .psd1 files.

All scripts contain functions.
You can import them into your session by typing . .\ScriptName.ps1 for .ps1 files
You can import as a module by running Import-Module if including module & manifest files.

Process for importing scripts as modules:

  1. Run $env:PSModulePath

  2. Create a directory in a module path with the same name as the module file minus the .psm1 file extension

  3. Place module file, manifest file, and script files in that directory contained in the PSModulePath variable'

  4. Import-Module "ModuleName" - Imports Module into session

  5. Get-Module; Get-Command -Module "ModuleName" - Verify the Module and functions are loaded

About

List of scripts I've written from scratch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published