Merge-ProfilingResults

Merge-ProfilingResults cmdlet 用于将多个 Get-ProfilingResults 输出文件合并到一个输出文件中。

重要

此功能为预览版:某些信息涉及预发布产品,在正式发布前可能会进行大幅修改。 Microsoft 对此处提供的信息不提供任何明示或暗示的保证。

模块名称:Microsoft.Windows.Win32Isolation.ApplicationCapabilityProfiler

语法

使用以下语法合并来自 XML 集的结果:

Merge-ProfilingResults [-XmlInput] <string[]> [-OutputPath <string>] [-PackageNames <string[]>] [-Quiet]
[-ShowNoNameObjectFailures] [-WhatIf] [-Confirm] [<CommonParameters>]

使用以下语法合并来自 CSV 集的结果:

Merge-ProfilingResults [-CsvInput] <string[]> [-OutputPath <string>] [-PackageNames <string[]>] [-Quiet]
[-ShowNoNameObjectFailures] [-WhatIf] [-Confirm] [<CommonParameters>]

参数

-XmlInput

指定要合并的 XML 应用程序包清单的一系列路径。

Type: System.String[]
Parameter Sets: XML
Aliases: c, Capabilities

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CsvInput

指定要合并的 CSV 访问尝试记录的一系列路径。

Type: System.String[]
Parameter Sets: CSV
Aliases: r, Records

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```t wildcard characters: False

-OutputPath

指定将保存合并输出结果的输出文件路径。

Type: System.String
Parameter Sets: (All)
Aliases: o, Output

Required: False
Position: Named
Default value: <working directory>\merged\AppXManifest-Capabilities.xml (XML) or <working directory>\merged\AccessAttemptRecords.csv (CSV)
Accept pipeline input: False
Accept wildcard characters: False

-PackageNames

指定要筛选合并的一系列程序包名称。 只有与指定程序包相关的信息才会被合并到输出文件中。

Type: System.String[]
Parameter Sets: (All)
Aliases: p, Packages

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ShowNoNameObjectFailures

表示是否输出未识别对象访问尝试的摘要信息。

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Quiet

表示 cmdlet 以静音模式运行,从而抑制不必要的输出和提示。

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示运行该 cmdlet 时会发生什么情况。 未执行此 cmdlet。

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

提示用户在运行 cmdlet 之前进行确认。

Type: System.Management.Automation.SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

示例

合并多个 XML 结果

以下示例将 AppXManifest 文件中列出的两个结果合并到一个文件中:

Merge-ProfilingResults -XmlInput "C:\Path\To\AppXManifest1.xml", "C:\Path\To\AppXManifest2.xml" -OutputPath "C:\Path\To\MergedAppXManifest.xml"

合并多个 CSV 结果

以下示例将 AccessAttemptRecords.csv 文件中列出的两个结果合并到一个文件中:

Merge-ProfilingResults -CsvInput "C:\Path\To\AccessAttemptRecords1.csv", "C:\Path\To\AccessAttemptRecords2.csv" -OutputPath "C:\Path\To\MergedAccessAttemptRecords.csv"

应用程序功能探查器

Get-ProfilingResults

Start-Profiling

Stop-Profiling