Product: PowerShell Studio 2023 (64 Bit)
Build: v5.8.232
OS: Windows 11.0.22631
PS Version(s): 5.1.22621.1, 7.2.5
Using a Form I'm trying to get some data written to a .txt file. I've tried -encoding ascii, unicode etc.. the data does get written to the .txt file but it is always truncated.
get-eventlog returns the following.
Index Time EntryType Source InstanceID and Message. The Message is always truncated. How do you get it to display all of this field?
Build: v5.8.232
OS: Windows 11.0.22631
PS Version(s): 5.1.22621.1, 7.2.5
Using a Form I'm trying to get some data written to a .txt file. I've tried -encoding ascii, unicode etc.. the data does get written to the .txt file but it is always truncated.
get-eventlog returns the following.
Index Time EntryType Source InstanceID and Message. The Message is always truncated. How do you get it to display all of this field?
Code:
$EL = Get-EventLog -logname application -entrytype error -Newest 25$EL | out-file "c:\temp\results.txt" -Encoding unicode -Append
Statistics: Posted by mqh77777 — Mon Jan 08, 2024 6:55 am