Table of contents
TOC
Collapse the table of content
Expand the table of content

Out-Null

JuanPablo Jofre|Last Updated: 11/17/2016
|
2 Contributors

SYNOPSIS

Deletes output instead of sending it down the pipeline.

SYNTAX

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

DESCRIPTION

The Out-Null cmdlet sends output to NULL, in effect, deleting it.

EXAMPLES

Example 1: Delete output

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

This command gets the items in the local directory, but then it deletes them instead of passing them through the pipeline or displaying them at the command line. This is useful for deleting output that you do not need.

PARAMETERS

-InputObject

Specifies the object that was sent to null, or deleted. Enter a variable that contains the objects, or type a command or expression that gets the objects.

Type: PSObject
Parameter Sets: (All)
Aliases: 

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
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 this cmdlet. .

OUTPUTS

None

This cmdlet 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.
  • 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.

Out-Default

Out-Host

© 2016 Microsoft