Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update example: "Using Format-Wide" #4114

Merged
merged 1 commit into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,29 @@ In the rest of this section, we will explore how to use **Format** cmdlets to ch

### Using Format-Wide for Single-Item Output

The **Format-Wide** cmdlet, by default, displays only the default property of an object. The information associated with each object is displayed in a single column:
The `Format-Wide` cmdlet, by default, displays only the default property of an object.
The information associated with each object is displayed in a single column:

```powershell
Get-Command -Verb Format | Format-Wide
```
PS> Get-Process -Name powershell | Format-Wide

powershell powershell
```output
Format-Custom Format-Hex
Format-List Format-Table
Format-Wide
```

You can also specify a non-default property:

```powershell
Get-Command -Verb Format | Format-Wide -Property Noun
```
PS> Get-Process -Name powershell | Format-Wide -Property Id

2760 3448
```output
Custom Hex
List Table
Wide
```

#### Controlling Format-Wide Display with Column
Expand Down