Mr. Jones from what I have watched or read states that he likes the write-output over the write-host and I understand the reason (object vs text to screen), but what if you wanted some of the benefits from both. I have a ping script that imports the computer names, but I like having the computers that are up a different color compared to the computers that are down. So the script outputting an object vs text is not a big deal, but lets say you did want it to be an object but with different colors for example. Would making the Write-Host into a variable then calling it from the Write-Output a way around that issue or is it kind of pointless?
↧