Home

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

Comments

Sign In or Register to comment.