I'm trying to create a silent operation for Invoke-WebRequest in my setup file. Every method I've tried so far seems to still output information, and what I really need is for it to run quietly so I can implement my own custom download screen. Any tips on how to achieve this? Thanks!
3 Answers
To make Invoke-WebRequest silent, you can pipe the output to Out-Null. This will suppress any output from being displayed, giving you the quiet operation you’re looking for.
Wait, what do you mean by 'noise'? Is there some kind of output you’re seeing that's bothering you?
Are you trying to hide the progress bar as well? That can make it look less noisy during the process.
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically