Skip to content

Latest commit

 

History

History
24 lines (14 loc) · 1.04 KB

File metadata and controls

24 lines (14 loc) · 1.04 KB

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