How to run Connect app from PowerShell

Tom Otero 1 Reputation point
2022-10-02T22:18:41.35+00:00

I'm attempting to run Connect app from PowerShell so I can run it from a script. From what I've found Connect app is calling "C:\Windows\SystemApps\Microsoft.PPIProjection_cw5n1h2txyewy\Receiver.exe". When I attempt to run this executable in an admin PowerShell terminal I receive the following error in the Event Viewer:

Faulting application name: Receiver.exe, version: 10.0.22000.120, time stamp: 0xf100a17a  
Faulting module name: Windows.UI.Xaml.dll, version: 10.0.22000.978, time stamp: 0x82655b66  
Exception code: 0xc0000409  
Fault offset: 0x00000000002ee1f6  
Faulting process id: 0x9544  
Faulting application start time: 0x01d8d6ab13cec91f  
Faulting application path: C:\Windows\SystemApps\Microsoft.PPIProjection_cw5n1h2txyewy\Receiver.exe  
Faulting module path: C:\Windows\System32\Windows.UI.Xaml.dll  

Is there a recommended way of running Connect app from PowerShell?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,398 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-10-02T23:11:19.593+00:00

    Hello @Tom Otero

    Thank you for posting on this community space.

    I wonder if you are referring to the following case scenario down below:

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Calling-PowerShell-from-PowerApps/td-p/693702#:~:text=There%20is%20no%20way%20to%20run%20PowerShell%20command%20in%20PowerApps,the%20flow%20and%20run%20it.

    If you feel I am mistaken please correct me or do not hesitate to let me know

    Have a good one!

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. Limitless Technology 39,426 Reputation points
    2022-10-04T07:42:35.3+00:00

    Hello there,

    This might be a permission issue. Make sure the account from which the script is executed has all permission to access the full path to the executables in your case the Connect app.

    You can start any application by specifying the full path to its executable: C:\Program Files xxx . exe. You can optionally use Start-Process with the EXE if you want to capture a reference to the executable to gain more control over it from Powershell.

    --------------------------------------------------------------------------------------------------------------------------------------------

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

    0 comments No comments