How to Pin a shortcut to Start as a Tile Programmatically

Gino Vincenzini 1 Reputation point
2020-04-06T00:47:32.5+00:00

So I've searched all over the internet for help on this and nobody seems to have a good working answer that's system portable. I'm trying to write an extension to Firefox that allows the user to pin the current site to their start menu (as well as All Programs, and Taskbar).

I have a way to create shortcuts and such but the only methods I could find work from powershell using lots of ugly Pinvoke to internal libraries (and even then I don't know it will work) or in powershell to get the'&Pin to Start' verb and then invoke it but trying it on my system either with an admin or user level powershell causes an Access Denied.

I've been at it for hours trying to figure out where the database is stored in the most recent release build of Windows 10, I've monitored the FS in the AppData folder and made changes to pins to no avail. I've saved the registry, pinned a shortcut, and then saved another copy and diffed them and found no differences. This is really leaving me scratching my head since it's definitely a function I want (especially for web apps like Repl.it, or sites like Youtube or Facebook) and I'm sure I'm not the only one. I know that Edge can do it but how do I do that?

I'm really at wits end with it.

Thanks in advance

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,245 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,111 Reputation points Microsoft Vendor
    2020-04-09T06:17:11.317+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A is under a public preview. Not all topics are supported. All the supported topics are listed on the right top.
    I suggest that you could ask your question in Microsoft Answers.

    Thank you.

    0 comments No comments