Skip to content

'Add-PathVariable' is not recognized #5

@Amadeus-

Description

@Amadeus-

I'm using Windows 10 and just installed Powershell 6.2.2. Using your profile, I get a lot of error messages that indicate that 'Add-PathVariable' is not recognized:

Add-PathVariable : The term 'Add-PathVariable' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\A\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:7 char:1
+ Add-PathVariable "${env:ProgramFiles}\PowerShell\6-preview"
+ ~~~~~~~~~~~~~~~~
+ CategoryInfo          : ObjectNotFound: (Add-PathVariable:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

There are 18 of these errors; all indicating that Add-PathVariable isn't recognized.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions