Windows PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language built on the .NET Framework. PowerShell provides full access to the Component Object Model (COM) and Windows Management Instrumentation (WMI), enabling administrators to perform administrative tasks on both local and remote Windows systems as well as WS-Management and Common Information Model (CIM) enabling management of remote Linux systems and network devices.
TRUSTED BY
C:\Users\bchallis\Document
and the file is called:
PBCPSModule.psm1
In my case the file contains instructions to load the files that make up the functionality that I want:
. $psScriptRoot\GeneralUtili
. $psScriptRoot\CompareObjec
. $psScriptRoot\GetDownloadQ
. $psScriptRoot\GetFileSizes
. $psScriptRoot\ManageBCServ
. $psScriptRoot\NewPassword.
. $psScriptRoot\SelectItemBy
the dot sourcing means load the file and keep the functions in memory. That way I can keep major functions in their own files for ease of management.
The in my profile I use:
Import-Module PBCPSModule
PowerShell will look in the Module directories under the user hive and under the install directory for a directory called PBCPSModule and in there for the file PBCPSModule.psm1 which it will then execute.