question

Victor-Chen avatar image
0 Votes"
Victor-Chen asked RoyLi-MSFT edited

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

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

js2010 avatar image
0 Votes"
js2010 answered js2010 edited

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/

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.