Basics
Strings
Variables
Cmdlets
Invoke-RestMethod
Select-Object
Debugging
Debugging in Visual Studio Code
Command Line Debugging
Environment
about_PowerShell_Config
$PSStyle
Modules
Publish a Module
Performance
Collections
Strings and StringBuilder
Deep Dive
Advanced Functions
Runspaces
.NET
Binary Cmdlets
Hosting
about_PowerShell_Config
Learn how to configure your environment with powershell.config.json.
Download this LectureIn this video, we look at how to use powershell.config.json
to configure your PowerShell environment.
You can open your LocalMachine
config with the following command.
code (Join-Path $pshome "powershell.config.json")
To open your CurrentUser
config, use the following command.
code (Join-Path (Split-Path $PROFILE.CurrentUserCurrentHost) "powershell.config.json")
A sample config looks like this.
{
"Microsoft.PowerShell:ExecutionPolicy": "Unrestricted",
"PSModulePath": "C:\\Modules",
"ExperimentalFeatures": [
"PSCommandNotFoundSuggestion"
],
"DisableImplicitWinCompat": true
}
Links shown in this video include: