Hallo,
I want to output the same text in every column in a format table, i.e.
gives
but I want
Any ideas? I've looked at FormatString but can't find a way to specifiy literal text, only "N3" etc.
TIA,
- Frink
I want to output the same text in every column in a format table, i.e.
Code:
Get-EventLog -LogName System -Newest 3 | Format-Table -Property @{Label="MyLabel";Expression="MyMsg"}, Message -Autosize
gives
Code:
MyLabel Message
------- -------
The Multimedia Class Scheduler service entered the stopped state.
The WinHTTP Web Proxy Auto-Discovery Service service entered the stopped state.
The Multimedia Class Scheduler service entered the running state.
but I want
Code:
MyLabel Message
------- -------
MyMsg The Multimedia Class Scheduler service entered the stopped state.
MyMsg The WinHTTP Web Proxy Auto-Discovery Service service entered the stopped state.
MyMsg The Multimedia Class Scheduler service entered the running state.
Any ideas? I've looked at FormatString but can't find a way to specifiy literal text, only "N3" etc.
TIA,
- Frink