Skip to content

Commit 7bb6c39

Browse files
authored
Format PowerShell example for readability
Reformat code
1 parent 739ce40 commit 7bb6c39

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

reference/5.1/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ command line. In this example, the name of the **FilePath** parameter, which is
6565
### Example 3: Get only valid Authenticode signatures for multiple files
6666

6767
```powershell
68-
Get-ChildItem $PSHOME\*.* | ForEach-Object {Get-AuthenticodeSignature $_} | Where-Object {$_.Status -eq "Valid"}
68+
Get-ChildItem $PSHOME\*.* |
69+
ForEach-Object {Get-AuthenticodeSignature $_} |
70+
Where-Object {$_.Status -eq "Valid"}
6971
```
7072

7173
This command lists all of the files in the `$PSHOME` directory that have a valid Authenticode

reference/7.4/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ command line. In this example, the name of the **FilePath** parameter, which is
6767
### Example 3: Get only valid Authenticode signatures for multiple files
6868

6969
```powershell
70-
Get-ChildItem $PSHOME\*.* | ForEach-Object {Get-AuthenticodeSignature $_} | Where-Object {$_.Status -eq "Valid"}
70+
Get-ChildItem $PSHOME\*.* |
71+
ForEach-Object {Get-AuthenticodeSignature $_} |
72+
Where-Object {$_.Status -eq "Valid"}
7173
```
7274

7375
This command lists all of the files in the `$PSHOME` directory that have a valid Authenticode

reference/7.6/Microsoft.PowerShell.Security/Get-AuthenticodeSignature.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ command line. In this example, the name of the **FilePath** parameter, which is
6767
### Example 3: Get only valid Authenticode signatures for multiple files
6868

6969
```powershell
70-
Get-ChildItem $PSHOME\*.* | ForEach-Object {Get-AuthenticodeSignature $_} | Where-Object {$_.Status -eq "Valid"}
70+
Get-ChildItem $PSHOME\*.* |
71+
ForEach-Object {Get-AuthenticodeSignature $_} |
72+
Where-Object {$_.Status -eq "Valid"}
7173
```
7274

7375
This command lists all of the files in the `$PSHOME` directory that have a valid Authenticode

0 commit comments

Comments
 (0)