# Output all powershell console message to WDF:textbox

**URL:** <https://forums.powershell.org/t/output-all-powershell-console-message-to-wdf-textbox/12723>\
**Category:** PowerShell Help\
**Created:** [June 15, 2019, 11:19pm UTC](https://forums.powershell.org/t/output-all-powershell-console-message-to-wdf-textbox/12723 "2019-06-15T23:19:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tn6478](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tn6478](https://forums.powershell.org/u/tn6478)\
**Post date:** [June 15, 2019, 11:19pm UTC](https://forums.powershell.org/t/output-all-powershell-console-message-to-wdf-textbox/12723/1 "2019-06-15T23:19:29Z")

</div>

I am currently testing out what is the best way to output powershell console message to WDF:textbox.

If i run this script normally in powershell it would return

App ‘Word’ pinned to Start  
App ‘Google Chrome’ pinned to Start

How would i output that in the textbox in this GUI.

Example Code

&nbsp;

---

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [June 16, 2019, 12:33am UTC](https://forums.powershell.org/t/output-all-powershell-console-message-to-wdf-textbox/12723/2 "2019-06-16T00:33:14Z")

</div>

XAML won’t get displayed properly here, please use [gist.github.com](http://gist.github.com) to post it here.

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:32pm UTC](https://forums.powershell.org/t/output-all-powershell-console-message-to-wdf-textbox/12723/3 "2024-05-16T20:32:09Z")

</div>


