Out-Null - PowerShell


 

Deletes output instead of sending it to the console. (Out-Null)

   

# NAME
Out-Null

# SYNOPSIS
Deletes output instead of sending it to the console.

# SYNTAX
Out-Null [-InputObject <psobject>] [<CommonParameters>]

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

# PARAMETERS
-InputObject <psobject>
Specifies the object that was sent to null (deleted). Enter a variable that contains the objects, or type a command or expression that gets the objects.

Required? false
Position? named
Default value
Accept pipeline input? true (ByValue)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

# 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.

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

# EXAMPLE 1

C:\PS>get-childitem | out-null

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

RELATED LINKS
Online version: http://go.microsoft.com/fwlink/?LinkID=113366
Out-Printer
Out-Host
Out-File
Out-String
Out-Default

C:\Windows>powershell get-help Out-Default -full

ColorConsole [Version 1.7.1000] PowerShell 2.0-Export
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2014 Microsoft Corporation.

OS: Windows 10, 8.1, 8, 7, Vista / Windows Server 2016, 2012, 2008
»»»» ColorConsole








Windows-10





Windows-10

... facebook.de
... Windows-10 FAQ
... Windows-10 Info


Become a Sponsor
... Your button here?





PowerShell: Deletes output instead of sending it to the console.

HTTP: ... PS_Windows/en/Out-Null.htm
0.217
10880

Schnelles andocken und vergleichen der Fenster unter Windows!

 /

Make the keyboard more easier to use on Windows 8.1 / 10!

 /

Can I show filename extension in Windows-10?

 /

Warum befinden sich Dateien in der bei Neustart Löschen Liste auf Windows 10?

 /

Tray-Funktion, um eine Windows-Desktop-Farbe zu ermitteln!

 /

Desktop shortcut for windows 8.1 / 10 fax and scan or pin to start or task-bar!

 /

PDF Seiten anordnen durch schlichtes Ziehen und Ablegen!

 /

Folder protection prevents deletion under Winsows 10, why?

 /

When keystrokes in Explorer the search field is selected / jumps on?

 /

What is facebook.com for an internet site and for what is it good?

 /

Öffnen der erweiterten Systemeinstellungen in Windows 10 (drei Wege)!

 /

Switch in Windows 8.1 between local and Microsoft account!

 /