PowerTip: Send Message to Information Stream in PowerShell

Summary: Use Windows PowerShell to send information for a command to a separate information stream.

Hey, Scripting Guy! Question How can I use Windows PowerShell to send information to a user via a separate information stream,
           without changing the default information preference variable?

Hey, Scripting Guy! Answer In Windows PowerShell 5.0, use the new Write-Information cmdlet, for example:

gps ; Write-Information "process information" -InformationAction continue

Note  gps is an alias for the Get-Process cmdlet.

Comments (1)

  1. Tim Bolton says:

    How does the User get this information that is in a separate information stream..? Is it just expected to show up in the console or is this a new way to send an SMTP message?

Skip to main content