How can we extract startup UWP applications?

S#v#n&h#i-Durga 21 Reputation points
2021-06-15T05:20:12.943+00:00

I am using C++ code base to develop a forensic tool. The requirement is to display all the startup applications. However UWP apps which are enabled to run at startup, are not found in RegEdit at "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" or any other paths which have startup applications info.

If I have to write a code to extract Startup applications like Cortana,Skype,Spotify etc (UWP apps) from registry or windows folders, how do I do it?
Is there any path where UWP startup applications are stored?

Note:

This is continuation question to :

https://answers.microsoft.com/en-us/windows/forum/windows_10-start-win_general/startup-apllications-in-windows-10/0b895da7-fa49-4a4d-816f-0adb3445fc74?messageId=1c952cf4-85f4-4bc2-bb21-5d4a7f1c9035

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,689 questions
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,661 Reputation points Microsoft Vendor
    2021-06-15T07:59:58.307+00:00

    Hi,

    I suggest you could try to use the Windows.Management.Deployment APIs.

    1,Enumerate installed packages by PackageManager.FindPackagesForUserWithPackageType

    2,Use GetPackageApplicationIds to get the IDs of apps in the specified package.

    3,Use StartupTask.GetAsync to get a startup task by Id.

    I suggest you could refer to the sample: Enumerate app packages

    Best Regards,

    Jeanine


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Castorix31 84,466 Reputation points
    2021-06-15T07:26:37.32+00:00

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.