How to use powershell to manage startup items of uwp app in windwos 10?

Victor Chen 106 Reputation points
2020-09-04T18:27:04.637+00:00

I hope to enable/disable the uwp app's startup items through powershell, but I tried to use gcim win32_startupcommand and Get-Item HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run and they couldn’t be found, shell:startup is also empty, it seems that uwp app is invisible and can only be seen in Task Manager->Startup, so what should I do?

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,546 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. js2010 191 Reputation points
    2020-09-05T12:52:44.697+00:00

    Here's an example of where the skype app startup info is in the registry. The registry keiy name "SkypeStarup" is completely arbitrary and is set in the appx manifest in a taskid attribute. "1" disables the startup of the app. These startups can't be detected by Sysinternals Autoruns, but they are in the Settings app. The apps framework is sloppily designed, and hard to manage,.

    HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\SystemAppData\Microsoft.SkypeApp_kzf8qxf38zg5c\SkypeStartup\State=1(dword) (from procmon category is write)

    See also the other place you posted your question: https://stackoverflow.com/questions/63746294/how-to-use-powershell-to-manage-startup-items-of-uwp-app-in-windwos-10/

    0 comments No comments

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.