Windows10 script pin app to start menu

怎甘沉沦 提交于 2019-12-07 23:13:59

问题


I have a Universal App that I'm sideloading in Windows10. I would like to create a script (Powershell, VBS, batch, etc) to pin it to the Start Menu.

I have found many examples of how to write a script that pins a desktop application (like this one: https://gallery.technet.microsoft.com/scriptcenter/Script-to-pin-items-to-51be533c ). I've tried using the script to pin the actual App .exe file located in C:\Program Files\WindowsApps... but that doesn't work. When I try and pin that way, I run DoIt(), which doesn't return anything. There are no error messages, but the tile is not pinned to the start menu.

My guess is that instead of using a ComObject to interact with the file system I need a ComObject that interacts with some sort of App manager. I'm not sure how to get a list of available ComObjects to tell if this is even a possibility.

来源:https://stackoverflow.com/questions/32359910/windows10-script-pin-app-to-start-menu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!