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
-安靜
表示 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"