Install windows store app powershell4/15/2023 Protocols : Īs you can see, the Microsoft Photos application has several protocol schemes associated with it, but the obvious candidate for simply launching the application is ms-photos:, which indeed works. PS> Get-AppXUriProtocol *Photos* | Format-List # isn't supported in PowerShell (Core), as of v7.1. # * Must be run in *Windows PowerShell*, because the AppX module # * Requires custom function Get-AppXUriProtocol from the linked answer. Using a URI protocol scheme such as ms-photos: is the simplest approach, although discovering a given Microsoft Store's application's protocol(s) is non-trivial - see this answer, which provides a helper function, Get-AppXUriProtocol, which builds on the standard Note: That Start-Process -Wait (and -PassThru) cannot be used with at least some Microsoft Store applications is unfortunate the problem has been reported in GitHub issue #10996. (Get-Process Microsoft.Photos).WaitForExit() # The relevant process name was obtained with: Get-Process *Photos* # Wait for the process to exit (from what I can tell there's only ever 1 # Note: Unfortunately, -Wait does *not* work in this case. # Use the URI scheme of the Microsoft.Photos application.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |