Has anyone experienced any issues with PSU scripts or apps (on Windows PowerShell 5.1 only) after installing the recently released Microsoft patch KB5074596 on their infrastructure?
An impacted app or script would report ‘Index was out of range. Must be non-negative and less than the size of the collection.’
Context
KB5074596 changes Invoke-Webrequest (in Windows PowerShell only) to now require consent when the -UseBasicParsing parameter is not used. We have a KB article about it at https://support.ironmansoftware.com/portal/en/kb/articles/kb0085-microsoft-patch-kb5074596-must-be-non-negative-and-less-than-the-size-of-the-collection
We are looking
for workarounds in case anyone is impacted by this because they require form or DOM parsing and therefore cannot use Microsoft’s guidance to add the -UseBasicParsing to their Invoke-Webrequest commands.