The seemingly simple problem I could not believe what a total pain in the ass this was to resolve. I tried getting the CPU and Memory utilization via CMD but that produced incredibly unreliable results....
This script will actually work for anything of the form “Copy stuff from static location and zip it up using PowerShell”, however the focus for this article is IIS because IIS logs are huge and...