Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 1.0 » Write-Output

Write-Output - Powershell 1.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.

Write-Output

Description
Write an object to the pipeline

Usage


Options
-inputObject Object
       The object(s) to send along the pipeline.
       A variable, command or expression that gets the objects.

   CommonParameters:
       -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutVariable.

Examples

Example(s)
Write a string to the pipeline, which by default will appear on the screen:

PS C:\>$myvar="The quick brown fox"
PS C:\>write-output $myvar