Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Send Message to Information Stream in PowerShell

$
0
0

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.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>