Start Microsoft Store apps via CLI with arguments

Thomas 1 Reputation point
2021-10-29T09:21:37.447+00:00

Hello,

reference #1: https://github.com/drud/ddev/issues/3340
reference #2: https://www.heidisql.com/forum.php?t=38438

I am looking for a way to start Microsoft Store apps via CLI with arguments.

It does not work if you try to start the .exe like: Start-Process 'C:\Program Files\WindowsApps\2691AnsgarBeckerSoftwareD.19284136982C_11.3.1.0_x86__peg9cky9b9hfj\heidisql.exe' because you're only left with "permission denied".

I found this command to start apps: start shell:appsfolder\2691AnsgarBeckerSoftwareD.19284136982C_peg9cky9b9hfj!HeidiSQL
But that doesn't accept arguments like the original .exe does, because it then cannot find the file.

Any help?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,628 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,866 Reputation points
    2021-10-29T15:40:51.517+00:00

    Hello @Thomas ,

    Thank you for your question and reaching out.

    You are getting Access denied because C:\Program Files\WindowsApps\ is protected by Windows OS where all apps are resides.

    If you want to get access then you need to get ownership of this folder from explorer then you can use it.

    Below is similar threads how to gain access to this folder.

    https://answers.microsoft.com/en-us/windows/forum/all/what-is-windows-apps-hidden-folder-and-why-cant-i/40a60508-c409-422a-af92-bd51fe5a4ca9

    https://answers.microsoft.com/en-us/windows/forum/all/permissions-in-cprogram-files-windowsapps-have/1972767e-6316-4b67-b417-f37b248d7d9b

    ---

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.