Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Out-String

Out-String - Powershell 2.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.

Out-String


Short description
Sends objects to the host as a series of strings.

Syntax
Out-String [-InputObject <psobject>] [-Stream] [-Width <int>] [<CommonParameters>]

Description
The Out-String cmdlet converts the objects that Windows PowerShell manages into an array of strings. By default, Ou
t-String accumulates the strings and returns them as a single string, but you can use the stream parameter to direc
t Out-String to return one string at a time. This cmdlet lets you search and manipulate string output as you would 
in traditional shells when object manipulation is less convenient.