Search notes:

PowerShell cmdLet out-string

out-string converts the input to a string:
PS C:\> (get-process | out-string).GetType().FullName
System.String

-stream

With -stream, out-string returns an array of strings, each of which corresponds to a line from the input:
PS C:\> (get-process | out-string -stream).GetType().FullName
System.Object[]
out-string -stream can be used in a pipeline to «grep» for certain strings in the emitted output of a cmdLet:
PS C:\Users\Rene> get-alias | out-string -stream | select-string Job

Alias           gjb -> Get-Job
Alias           rcjb -> Receive-Job
Alias           rjb -> Remove-Job
Alias           rujb -> Resume-Job
Alias           sajb -> Start-Job
Alias           spjb -> Stop-Job
Alias           sujb -> Suspend-Job
Alias           wjb -> Wait-Job

See also

The PowerShell command noun string and command verb out.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1740454107, '18.217.110.140', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/command-inventory/noun/string/out(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78