PowerShell Config Reference
Windows PowerShell 5.1 and PowerShell 7: shell, scripting language and the base of Microsoft 365 administration.All PowerShell pages
- $env:PSModulePath: where PowerShell looks for modules and how to add a folderPSModulePath lists the folders PowerShell searches to import and auto-load modules. Prepend a folder for the session, or in your profile for every session.
- $PROFILE: where the PowerShell profile is and how to create it$PROFILE is the path of the current user, current host profile script. It does not exist until you create it with New-Item -Path $PROFILE -ItemType File -Force.