PowerShell Logo Small

Get-TroubleshootingPack



This is the built-in help made by Microsoft for the command 'Get-TroubleshootingPack', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Gets a troubleshooting pack or generates an answer file.

SYNTAX


Get-TroubleshootingPack [-Path] <String> [-AnswerFile <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-TroubleshootingPack cmdlet gets a DiagPack object that you can pass to the Invoke-TroubleshootingPack cmdlet.


The Get-TroubleshootingPack can also get information about a troubleshooting pack and generate an answer file.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=287584
Invoke-TroubleshootingPack

REMARKS

<

Examples


Example 1: Get a troubleshooting pack

PS C:\> Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"



The command gets the troubleshooting pack for Audio in the specified path.




Example 2: Get a root cause

PS C:\> $Audio = Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"
PS C:\> $Audio.Rootcauses[2]



This example shows how to discover a root cause from a troubleshooting pack.

The first command gets the troubleshooting pack for Audio in the specified path and saves that object in the $Audio variable.

The second command displays a root cause. The $Audio object contains an array of root causes. This command uses conventional array notation to access the third member of the
array.




Example 3: Get a resolution

PS C:\> $Audio = Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"
PS C:\> $Audio.RootCauses[2].Resolutions[0]



This example shows how to discover a resolution for a root cause.

The first command gets the troubleshooting pack for Audio in the specified path and saves that object in the $Audio variable.

The second command displays a resolution for a root cause. The $Audio object contains an array of root causes, each of which contains an array of resolutions. This command
uses conventional array notation to access the first resolution for the third root cause.




Example 4: Generate an answer file

PS C:\> Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio" -AnswerFile "AudioAnswerFile.xml"



This command uses the Get-TroubleshootingPack cmdlet to generate an answer file. The Areo troubleshooting pack provides a series of questions for the user to describe the
troubleshooting situation and saves that information in the specified XML file.