PowerShell-Docs icon indicating copy to clipboard operation
PowerShell-Docs copied to clipboard

Incorrect Automatic Variable used in example

Open Loves2Code opened this issue 7 years ago • 0 comments

Within the section titled $PROFILE :

In the line that reads: "Or, you can use it in a command to create a profile:"

The code block that immediately follows appears to use the wrong automatic variable.

Existing Code: New-Item -ItemType file -Path $PSHOME -Force

Probably Correct Code: New-Item -ItemType file -Path $profile -Force


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Loves2Code avatar Jul 25 '19 13:07 Loves2Code