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

Victor Chen 111 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 for business | Windows Server | User experience | PowerShell
0 comments No comments

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/

    Was this answer helpful?

    0 comments No comments

Your answer

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