查找 per-app VPN 配置的包系列名称 (PFN)Find a package family name (PFN) for per-app VPN configuration

适用于:经典门户中的 IntuneApplies to: Intune in the classic portal
在寻找有关 Azure 门户中 Intune 的文档吗?Looking for documentation about Intune in the Azure portal? 请转到此处Go here.

有两种方法来查找 PFN,以便你可以设置每应用 VPN。There are two ways to find a PFN so that you can set up a per-app VPN.

查找安装在 Windows 10 计算机上的应用的 PFNFind a PFN for an app that's installed on a Windows 10 computer

如果正在使用的应用已安装在 Windows 10 计算机上,则可以使用 Get-AppxPackage PowerShell cmdlet 来获取 PFN。If the app that you are working with is already installed on a Windows 10 computer, you can use the Get-AppxPackage PowerShell cmdlet to get the PFN.

Get-AppxPackage 的语法是:The syntax for Get-AppxPackage is:

Parameter Set: __AllParameterSets Get-AppxPackage [[-Name] <String> ] [[-Publisher] <String> ] [-AllUsers] [-User <String> ] [ <CommonParameters>]

备注

你可能需要以管理员身份运行 PowerShell 才能检索 PFN。You may have to run PowerShell as an admin to retrieve the PFN.

例如,若要获取安装在计算机上的所有通用应用的信息,请使用 Get-AppxPackageFor example, to get info about all the universal apps installed on the computer, use Get-AppxPackage.

若要在知道应用的名称或部分名称时获取该应用的信息,请使用 Get-AppxPackage *<app_name>To get info about an app when you know the name or part of the name, use Get-AppxPackage *<app_name>. 请注意通配符的使用,特别是在你不确定应用的完整名称的情况下,这会很有帮助。Note the use of the wildcard character, which is particularly helpful if you're not sure of the full name of the app. 例如要获取 OneNote 的信息,请使用 Get-AppxPackage *OneNoteFor example, to get the info for OneNote, use Get-AppxPackage *OneNote.

下面是针对 OneNote 检索到的信息:Here is the information retrieved for OneNote:

Name : Microsoft.Office.OneNote

Publisher : CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US

Architecture : X64

ResourceId :

Version : 17.6769.57631.0

PackageFullName : Microsoft.Office.OneNote_17.6769.57631.0_x64__8wekyb3d8bbwe

InstallLocation : C:\Program Files\WindowsApps

\Microsoft.Office.OneNote_17.6769.57631.0_x64__8wekyb3d8bbwe

IsFramework : False

PackageFamilyName : Microsoft.Office.OneNote_8wekyb3d8bbwe

PublisherId : 8wekyb3d8bbwe

计算机上未安装该应用时查找 PFNFind a PFN if the app is not installed on a computer

  1. 转到 https://www.microsoft.com/store/apps。Go to https://www.microsoft.com/store/apps.
  2. 在搜索栏中输入应用的名称。Enter the name of the app in the search bar. 在本示例中,我们搜索 OneNote。In our example, search for OneNote.
  3. 选择应用的链接。Choose the link to the app. 请注意,URL 末尾有一系列字母。Note that the URL has a series of letters at the end. 在我们的示例中,URL 如下所示:https://www.microsoft.com/store/apps/onenote/9wzdncrfhvjlIn our example, the URL looks like this: https://www.microsoft.com/store/apps/onenote/9wzdncrfhvjl.
  4. 在另一个选项卡上,粘贴下面的 URL:https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/<app id>/applockerdataIn a different tab, paste the following URL, https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/<app id>/applockerdata. <app id> 替换为从 https://www.microsoft.com/store/apps 获取的应用 ID,即步骤 3 中 URL 末尾的一系列字母。Replace <app id> with the app id that you got from https://www.microsoft.com/store/apps - that series of letters at the end of the URL in step 3. 以 OneNote 为例,粘贴:https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/9wzdncrfhvjl/applockerdataIn our example of OneNote, you'd paste: https://bspmts.mp.microsoft.com/v1/public/catalog/Retail/Products/9wzdncrfhvjl/applockerdata.

Microsoft Edge 会显示你所需的信息;在 Internet Explorer 中,选择“打开”来查看该信息。Microsoft Edge shows the information that you want; in Internet Explorer, choose Open to see the information. PFN 值会在第一行给出。The PFN value is given on the first line. 以下是我们示例的结果:Here are the results for our example:

{ "packageFamilyName": "Microsoft.Office.OneNote_8wekyb3d8bbwe", "packageIdentityName": "Microsoft.Office.OneNote", "windowsPhoneLegacyId": "ca05b3ab-f157-450c-8c49-a1f127f5e71d", "publisherCertificateName": "CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" }