PowerShell-Docs
PowerShell-Docs copied to clipboard
Incorrect Automatic Variable used in example
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.
- ID: c21f7153-2a78-37c8-6935-9bf8aac83cea
- Version Independent ID: 901506c9-d895-9a5b-331f-7b332fc5e827
- Content: about_Automatic_Variables
- Content Source: reference/6/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md
- Product: powershell
- Technology: powershell-cmdlets
- GitHub Login: @SteveL-MSFT
- Microsoft Alias: slee