Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“Command Not Found" cannot detected my powershell #30863

Open
Yeson38 opened this issue Jan 10, 2024 · 5 comments
Open

“Command Not Found" cannot detected my powershell #30863

Yeson38 opened this issue Jan 10, 2024 · 5 comments
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Product-CommandNotFound Refers to Command Not Found PowerToy

Comments

@Yeson38
Copy link

Yeson38 commented Jan 10, 2024

Microsoft PowerToys version

0.77.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

General

Steps to reproduce

I updated my powershell to 7.4.0 weeks ago
QQ截图20240110212655
but it didn't detected
QQ截图20240110212813

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Other Software

Powershell 7.4.0

@Yeson38 Yeson38 added Issue-Bug Something isn't working Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 10, 2024
@jaimecbernardo
Copy link
Collaborator

Interesting, might be because you have a release candidate?
What do you get if you type in $PSVersionTable in your PowerShell? Can you please get a screenshot of that as well?
And by the way, is Command Not Found working for you?
/needinfo

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 10, 2024
@jaimecbernardo jaimecbernardo added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Product-CommandNotFound Refers to Command Not Found PowerToy Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jan 10, 2024
@Yeson38
Copy link
Author

Yeson38 commented Jan 11, 2024

image

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Team-Response An issue author responded so the team needs to follow up and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 11, 2024
@Tosch-IT
Copy link

Tosch-IT commented Jan 18, 2024

Check whether the directory where the pwsh.exe is located is included in the path variable. I also had a Powershell profile in Windows Terminal without the pws.exe directory in the path variable, and "Command not found" couldn't find it either. After I added it, Powershell was detected by “Command not found”.
Alternatively, if Powershell 7 was installed from the store, uninstall Powershell and reinstall it via Winget. It doesn't seem to work with the version from the store (yet), even if powershell was recognized.

@nguyen-dows nguyen-dows added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jan 26, 2024
@Starstrike
Copy link

I'm experiencing that same issue that Tosch-IT mentioned. I use the store version (because store updates it easily and I don't need to manually install updates). Even though I can open a cmd and type pwsh.exe to start powershell, PowerToys can't find it. Is there any workaround for this besides uninstalling the store version and using a version that has to be manually updated?

@Yeson38
Copy link
Author

Yeson38 commented Mar 4, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Needs-Team-Response An issue author responded so the team needs to follow up Product-CommandNotFound Refers to Command Not Found PowerToy
Projects
Status: No status
Development

No branches or pull requests

5 participants