Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Out-String

Out-String - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


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

Out-String [-InputObject <PSObject>] [-Stream] [-Width <Int32>] [<CommonParameters>]

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