Hi
Would be possible to add a way to limit the amount of updates the script does?
Right now I just installed a fresh W7 x64 SP1 on a machine and ran WSUSoffline. It listed 127 patches... due to the way the patches work, when installing patch 112 and onwards the PC ran out of memory (TrustedInstaller.exe using 2,5 GB of RAM and not being allowed to use more).
This is on a machine with 4GB RAM. With 2GB RAM is even worse, patching already fails around patch 40-50 (each patch install finishes with the Error 14: not enough resources messsage).
Total memory on the machine was 4,6 GB (4096 physical minus 72MB of hardware reserved memory plus 768 MB of pagefile).
Granted I could just increase the pagefile to allow the process to keep running but it would mean the update would take a very long time.
Whereas if I could limit the amount of patches it would not run until all of the physical memory is used thus not being slowed by pagefile usage.
Cheers.
P.D.: Check this blog post, it already mentions this issue three years ago: http://marc.durdin.net/2011/08/does-mic ... -a-leak-2/