Skip to content

Commit b0b8261

Browse files
Merge pull request MicrosoftDocs#81 from doctordns/patch-1
Minor updated to Get-Troubleshootingpack
2 parents ee22580 + 189d86f commit b0b8261

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

docset/windows/troubleshootingpack/get-troubleshootingpack.md

+12-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Get-TroubleshootingPack [-Path] <String> [-AnswerFile <String>] [<CommonParamete
2929
```
3030

3131
## DESCRIPTION
32-
The **Get-TroubleshootingPack** cmdlet gets a **DiagPack** object that you can pass to the Invoke-TroubleshootingPack cmdlet.
32+
The **Get-TroubleshootingPack** cmdlet gets a **Microsoft.Windows.Diagnosis.DiagPack** object that you can pass to the Invoke-TroubleshootingPack cmdlet.
3333

3434
The **Get-TroubleshootingPack** cmdlet also gets information about a troubleshooting pack and generates an answer file.
3535

@@ -56,7 +56,16 @@ The second command displays a root cause.
5656
The $Audio object contains an array of root causes.
5757
This command uses conventional array notation to access the third member of the array.
5858

59-
### Example 3: Get a resolution for a root cause
59+
### Example 3: Get all root causes
60+
```
61+
PS C:\> $Audio = Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"
62+
PS C:\> $Audio.Rootcauses
63+
```
64+
65+
Tgus example dislays all the root casues this troubleshooting pack investigates.
66+
67+
68+
### Example 4: Get a resolution for a root cause
6069
```
6170
PS C:\> $Audio = Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio"
6271
PS C:\> $Audio.RootCauses[2].Resolutions[0]
@@ -70,7 +79,7 @@ The second command displays a resolution for a root cause.
7079
The $Audio object contains an array of root causes, each of which contains an array of resolutions.
7180
This command uses conventional array notation to access the first resolution for the third root cause.
7281

73-
### Example 4: Generate an answer file
82+
### Example 5: Generate an answer file
7483
```
7584
PS C:\> Get-TroubleshootingPack -Path "C:\Windows\Diagnostics\System\Audio" -AnswerFile "AudioAnswerFile.xml"
7685
```

0 commit comments

Comments
 (0)