powershell-profile
powershell-profile copied to clipboard
'Add-PathVariable' is not recognized
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.
Do you have PSCX installed?
On Sat, 11 Jan 2020, 06:07 Amadeus, [email protected] wrote:
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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mikemaccana/powershell-profile/issues/5?email_source=notifications&email_token=AABKEMVLINQ7YH7BUPKD3XTQ5FOY7A5CNFSM4KFQKYIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IFPXJWA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKEMRMJKT3EYGTX3VVBXLQ5FOY7ANCNFSM4KFQKYIA .
I did not; however, installing that did seem to fix the issue. I didn't see that it was a requirement.
Thanks.
No probs. I'll make sure the docs are more explicit.
On Sat, 11 Jan 2020, 18:47 Amadeus, [email protected] wrote:
I did not; however, installing that did seem to fix the issue. I didn't see that it was a requirement.
Thanks.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/mikemaccana/powershell-profile/issues/5?email_source=notifications&email_token=AABKEMUIK7KI7P4W734CFY3Q5IH4XA5CNFSM4KFQKYIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIWIQNY#issuecomment-573343799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABKEMR3LA6JJD4OMJ7X4WTQ5IH4XANCNFSM4KFQKYIA .