1

How would I check, in PowerShell, if a specific Windows Store App is installed? Specifically, I need to test whether the Microsoft "Terminal" app is currently installed.

2
  • 1
    Have you tried Get-AppPackage? Commented Sep 27, 2022 at 9:38
  • 1
    Thanks. My understanding of .appx packages is very primitive. I've now used if ((Get-AppPackage).Name -like "*Terminal*") { <do-stuff> } and that seems ok (unless you have a more efficient syntax?). Commented Sep 27, 2022 at 10:28

1 Answer 1

1

Make sure to use the -AllUsers option to ensure you search all packages:

# if ((Get-AppPackage -AllUsers).Name -like "*WindowsTerminal*") {$True}
True
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.