modules
Import-Module MyModule
Get-Command -Module MyModule
Modules package functions, variables, and aliases They are the unit of reuse in PowerShell
Discovery
Get-Module -ListAvailable
Shows what is installed
Get-Command shows what is loaded
Module types
- script modules,
.psm1 - binary modules, compiled .NET
- manifest modules,
.psd1
Script modules are the common starting point Binary modules are for performance and complex logic
DSC
PowerShell Desired State Configuration manages infrastructure as code It enforces and reports configuration drift That is a separate subject, but it is why many teams learn PowerShell
Next
Remoting in 08 remoting
Test this in your lab first
Posted