Out-String - Powershell 1.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 »
Out-String
Description Send objects to the host as strings Usage Options Example(s) Send the content of Test1.txt to the console as a single string: PS C:\>get-content C:\docs\test1.txt | out-string Get the regional settings for the current user and convert the data to strings: PS C:\>$cult = get-culture | select-object * out-string -inputobject $cult -width 100 Display all aliases that include the phrase "Get-" PS C:\>get-alias | out-string -stream | select-string "Get-" Piping into Select-String demonstrates the difference between working with objects and working with strings. The -stream parameter sends each string individually, as without this Select-String would simply match and return the entire single string containing all of the aliases.