October 2017
Intermediate to advanced
440 pages
11h 47m
English
PowerShell 3 and more will attempt to automatically load modules if a command from that module is used and the module is under one of the paths in the %PSMODULEPATH% environment variable.
For example, if PowerShell is started and the PSDesiredStateConfiguration module is not imported, running the Get-DscResource command will cause the module to be imported. This is shown in the following example:
PS> Get-Module PSDesiredStateConfigurationPS> Get-DscResourcePS> Get-Module PSDesiredStateConfigurationModuleType Version Name ExportedCommands---------- ------- ---- ---------------- Manifest 1.1 PSDesiredStateConfiguration ...
In the previous example, the first time Get-Module is executed, the PSDesiredStateConfiguration ...
Read now
Unlock full access