Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions reference/3.0/Microsoft.PowerShell.Core/Out-Default.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
locale: en-us
Expand All @@ -7,30 +7,36 @@ online version: http://go.microsoft.com/fwlink/?LinkID=113362
external help file: System.Management.Automation.dll-Help.xml
title: Out-Default
---

# Out-Default

## SYNOPSIS

Sends the output to the default formatter and to the default output cmdlet.

## SYNTAX

```
Out-Default [-InputObject <PSObject>] [<CommonParameters>]
```

## DESCRIPTION

The **Out-Default** cmdlet sends output to the default formatter and the default output cmdlet.
This cmdlet has no effect on the formatting or output of Windows PowerShell commands.
It is a placeholder that lets you write your own **Out-Default** function or cmdlet.

## EXAMPLES

### 1:

```

```

## PARAMETERS

### -InputObject

Accepts input to the cmdlet.

```yaml
Expand All @@ -46,7 +52,9 @@ Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

## OUTPUTS
Expand Down
36 changes: 27 additions & 9 deletions reference/3.0/Microsoft.PowerShell.Core/Out-Host.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
locale: en-us
Expand All @@ -7,25 +7,30 @@ online version: http://go.microsoft.com/fwlink/?LinkID=113365
external help file: System.Management.Automation.dll-Help.xml
title: Out-Host
---

# Out-Host

## SYNOPSIS

Sends output to the command line.

## SYNTAX

```
Out-Host [-Paging] [-InputObject <PSObject>] [<CommonParameters>]
```

## DESCRIPTION

The **Out-Host** cmdlet sends output to the Windows PowerShell host for display.
The host displays the output at the command line.
Because **Out-Host** is the default, you do not need to specify it unless you want to use its parameters to change the display.

## EXAMPLES

### Example 1

```
PS C:\> Get-Process | Out-Host -Paging
PS> Get-Process | Out-Host -Paging
```

This command displays the processes on the system one page at a time.
Expand All @@ -35,18 +40,22 @@ The **Paging** parameter displays one page of data at a time.

The same command format is used for the Help function that is built into Windows PowerShell.
That function gets data from the Get-Help cmdlet and then uses the **Paging** parameter of **Out-Host** to display the data one page at a time by using this command format: `Get-Help $Args\[0\] | Out-Host -Paging`.

### Example 2

```
PS C:\> $a = Get-History
PS C:\> Out-Host -InputObject $a
PS> $a = Get-History
PS> Out-Host -InputObject $a
```

These commands display the session history at the command line.
The first command uses the Get-History cmdlet to get the session history, and then it stores the history in the $a variable.
The second command uses **Out-Host** to display the content of the $a variable, and it uses the **InputObject** parameter to specify the variable to **Out-Host**.

## PARAMETERS

### -InputObject

Specifies the objects that are written to the console.
Enter a variable that contains the objects, or type a command or expression that gets the objects.

Expand All @@ -63,6 +72,7 @@ Accept wildcard characters: False
```

### -Paging

Displays one page of output at a time, and waits for user input before displaying the remaining pages, much like the traditional "more" command.
By default, all of the output is displayed on a single page.
The page size is determined by the characteristics of the host.
Expand All @@ -80,22 +90,30 @@ Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.Management.Automation.PSObject

You can pipe any object to **Out-Host**.

## OUTPUTS

### None

**Out-Host** does not generate any output.
However, the host might display the objects that **Out-Host** sends to it.

## NOTES
* The cmdlets that contain the Out verb (the Out cmdlets) do not format objects; they just render them and send them to the specified display destination. If you send an unformatted object to an Out cmdlet, the cmdlet sends it to a formatting cmdlet before rendering it.
* The Out cmdlets do not have parameters for names or file paths. To send data to an Out cmdlet, use a pipeline operator (|) to send the output of a Windows PowerShell command to the cmdlet. You can also store data in a variable and use the InputObject parameter to pass the data to the cmdlet. For help, see the examples.
* **Out-Host** sends data, but it does not emit any output objects. If you pipe the output of **Out-Host** to the Get-Member cmdlet, **Get-Member** reports that no objects have been specified.

*
- The cmdlets that contain the Out verb (the Out cmdlets) do not format objects; they just render them and send them to the specified display destination. If you send an unformatted object to an Out cmdlet, the cmdlet sends it to a formatting cmdlet before rendering it.
- The Out cmdlets do not have parameters for names or file paths. To send data to an Out cmdlet, use a pipeline operator (|) to send the output of a Windows PowerShell command to the cmdlet. You can also store data in a variable and use the InputObject parameter to pass the data to the cmdlet. For help, see the examples.
- **Out-Host** sends data, but it does not emit any output objects. If you pipe the output of **Out-Host** to the Get-Member cmdlet, **Get-Member** reports that no objects have been specified.

-

## RELATED LINKS

[Clear-Host](Functions/Clear-Host.md)
Expand Down
25 changes: 20 additions & 5 deletions reference/3.0/Microsoft.PowerShell.Core/Out-Null.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
---
ms.date: 06/09/2017
schema: 2.0.0
locale: en-us
Expand All @@ -7,32 +7,39 @@ online version: http://go.microsoft.com/fwlink/?LinkID=113366
external help file: System.Management.Automation.dll-Help.xml
title: Out-Null
---

# Out-Null

## SYNOPSIS

Hides the output instead of sending it down the pipeline or displaying it.

## SYNTAX

```
Out-Null [-InputObject <PSObject>] [<CommonParameters>]
```

## DESCRIPTION

The **Out-Null** cmdlet sends its output to NULL, in effect, removing it from the pipeline and
preventing the output to be displayed at the screen.

## EXAMPLES

### Example 1

```
PS C:\> Get-ChildItem | Out-Null
PS> Get-ChildItem | Out-Null
```

This command gets items in the current location/directory, but its output is not passed through
the pipeline nor displayed at the command line.
This is useful for hiding output that you do not need.

## PARAMETERS

### -InputObject

Specifies the object to be sent to NULL (removed from pipeline).
Enter a variable that contains the objects, or type a command or expression that gets the objects.

Expand All @@ -49,22 +56,30 @@ Accept wildcard characters: False
```

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

## INPUTS

### System.Management.Automation.PSObject

You can pipe any object to **Out-Null**.

## OUTPUTS

### None

**Out-Null** does not generate any output.

## NOTES
* The cmdlets that contain the Out verb (the Out cmdlets) do not have parameters for names or file paths. To send data to an Out cmdlet, use a pipeline operator (|) to send the output of a Windows PowerShell command to the cmdlet. You can also store data in a variable and use the InputObject parameter to pass the data to the cmdlet. For more information, see the examples.

*
- The cmdlets that contain the Out verb (the Out cmdlets) do not have parameters for names or file paths. To send data to an Out cmdlet, use a pipeline operator (|) to send the output of a Windows PowerShell command to the cmdlet. You can also store data in a variable and use the InputObject parameter to pass the data to the cmdlet. For more information, see the examples.

-

**Out-Null** does not return any output objects.
If you pipe the output of **Out-Null** to the Get-Member cmdlet, **Get-Member** reports that no objects have been specified.

## RELATED LINKS

[Out-Default](Out-Default.md)
Expand Down
Loading