2

I am using a registry-based approach to prevent disabling or uninstalling Microsoft Edge extensions. However, I need a Package Family Names of extension to achieve this.

I tried the below command in PowerShell to get it for a particular extension but with no luck.

> Get-AppxPackage ExtensionName

source: Prevent turning off required extensions https://learn.microsoft.com/en-us/microsoft-edge/deploy/group-policies/extensions-management-gp

jayprakash
  • 59
  • 4
  • I tried the command and it can get the PFN of the extension. The result is like the answer in [this thread](https://stackoverflow.com/questions/59468164/how-to-get-the-pfn-package-family-names-for-microsoft-edge-extensions). Is there any error when you run the command? Have you added the `**` around the extension name? Besides, you can run PowerShell as Administrator and try again. – Yu Zhou Sep 16 '20 at 07:19
  • @YuZhou I tried for the installed extension with PowerShell as Administrator. Also tried with ** around the extension. But nothing shows. When I try for some installed app then I get the PFN. Can you tell me the extension name for which you got the PFN? – jayprakash Sep 16 '20 at 08:03
  • I tried for "Grammarly for Microsoft Edge" and "Dark Mode" extensions. – jayprakash Sep 16 '20 at 08:09
  • I installed and tried [this extension](https://i.stack.imgur.com/9DuvG.png) "Translator". I'll try the extensions you mentioning and let you know the result. By the way, do you install the extension in Edge Chromium or in Edge Legacy? – Yu Zhou Sep 16 '20 at 08:26
  • I Installed the extensions in Edge Chromium. However, I tried for your mentioned extension but Also did not get anything. Tried command in PowerShell with admin right: > Get-AppxPackage **Translator** Is anything am I missing? – jayprakash Sep 16 '20 at 08:53
  • I found that if there's a space in the extension name, I can't get PFN either. But I can get PFN when there's no space in the extension name, you can check [my result](https://i.stack.imgur.com/elc2L.png). You can try it in other machines. I'll research further and let you know if I get any progress. – Yu Zhou Sep 16 '20 at 09:35
  • I tried for **Translator** in other machines but not getting PFN. am I missing something? I am getting PFN for installed APPs – jayprakash Sep 16 '20 at 09:54
  • Let us [continue this discussion in chat](https://chat.stackoverflow.com/rooms/221621/discussion-between-yu-zhou-and-jayprakash). – Yu Zhou Sep 17 '20 at 08:57

1 Answers1

2

After some tests and searching for the information, I found that we can only get PFN of extensions in Edge Legacy. The doc you refer to is also apply to Edge Legacy:

You've reached the documentation for Microsoft Edge version 45 and earlier.

But now, we're using Edge Chromium and I don't find such policy which can prevent disabling or uninstalling Edge Chromium extensions. You can check the policies which are available for Edge Chromium. So we can't use a PFN and registry-based way to achieve what you want.

Yu Zhou
  • 11,532
  • 1
  • 8
  • 22