I thought I would share this. We are new to Adaxes but really finding it a great tool to host some powershell scripts and make them accessible to others in the team without powershell knowledge.
This is a simple example command that outputs the DNS entries for a round-robin style dns we have for our small terminal server farm.
I just surround any command with '$logmessage =' in the front and the '| Out-String -Stream' at the end and then use the foreach loop to output it.
The '| Out-String -Stream' creates an array of strings from a formatted powershell output table. The second line then just loops through the array and outputs each line.
---------------
$logmessage = Get-DnsServerResourceRecord -ComputerName "dns-server-name" -Name "dns-entry-name" -ZoneName "domain-name" -RRType "A" | Out-String -Stream
foreach ($logline in $logmessage) { if ($logline -ne '') { $Context.LogMessage($logline, "Information") } }
---------------
If there are better ways to do this I am definitely interested.