AdminToolbox.psm1
<#
.SYNOPSIS -Taylor Lee Modified 05302019 .DESCRIPTION Module for Admin Toolbox #> ##Import Functions $FunctionPath = $PSScriptRoot + "\Functions\" $FunctionList = Get-ChildItem $FunctionPath -Name ForEach ($Function in $FunctionList) { . ($FunctionPath + $Function) } ##Import Support Files #Save the current value for Path in the $p variable. $p = [Environment]::GetEnvironmentVariable("Path") #Add the new path to the $p variable. Begin with a semi-colon separator. $FunctionPath = $PSScriptRoot + "\Support\" $p += ";$FunctionPath" #Add the paths in $p to the PSModulePath value. [Environment]::SetEnvironmentVariable("Path", $p) #Add Custom Aliases Set-Alias -Name scm -Value Show-Command Set-Alias -Name gel -Value Get-Location #Present Module Introduction Get-Intro2 |