event viewer
1 TopicWrite array values to Event Viewer?
Trying to debug an old PowerShell script that contains a small array, containing 5 -7 entries, each about 10-15 bytes long). I'm trying to write the contents of the array ($activeNode) to the Event Viewer. I tried this: Write-EventLog –LogName Application –Source AppServer –EntryType Information –EventID 920 –Message "Active Node List:$activeNode" but the entry in Event Viewer comes out like this: Active Node List:System.Data.DataRow I know I'm missing something obvious. How do I get the actual contents of the $activeNode array to show up?3.3KViews0likes19Comments