Suppress console outputs
I have a script reading some informations with Util.Cmd() from multiple remote servers...
Util.Cmd($"wmic /node:\"{srv.server}\" OS get LastBootUpTime");
At the end I will display the results in a table.
All works fine, but I'm wondering if it's possible to suppress the console outputs of the Util.Cmd() on the result screen.
At the moment I have to clean up the output bevore I put my table on the result screen.
Thanks in advance
Ifrit
Util.Cmd($"wmic /node:\"{srv.server}\" OS get LastBootUpTime");
At the end I will display the results in a table.
All works fine, but I'm wondering if it's possible to suppress the console outputs of the Util.Cmd() on the result screen.
At the moment I have to clean up the output bevore I put my table on the result screen.
Thanks in advance
Ifrit
Comments
I should have thought of that myself
Example from https://social.msdn.microsoft.com/Forums/vstudio/en-US/85271fd8-3cc2-4011-92a7-294d0d008945/i-need-to-list-system-boot-time-for-a-remote-server?forum=netfxbcl
Thank you very much.