NCPA Powershell Output
Posted: Mon Nov 06, 2023 3:56 pm
Hi:
I wrote a Powershell script to check AD Connect Sync results and the script works fine on the server. I want the script to return multiple lines but I can only get it to return one. My output is here:
write-host "There were errors in the last export"
$objects |out-string | % {write-host $_ }
So, if working it would return the first line and then a small table below it. I can't for the life of me get it to return the table, only that first line. What am I missing here?
Thanks!
I wrote a Powershell script to check AD Connect Sync results and the script works fine on the server. I want the script to return multiple lines but I can only get it to return one. My output is here:
write-host "There were errors in the last export"
$objects |out-string | % {write-host $_ }
So, if working it would return the first line and then a small table below it. I can't for the life of me get it to return the table, only that first line. What am I missing here?
Thanks!