about_PowerShell_Config

Learn how to configure your environment with powershell.config.json.

Download this Lecture

In 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: