Parsing local HTML file using New-Object -ComObject “HTMLFile” broken?
I have been running a password expiration script for the pass 6 months without any issue. The script will read in a static html file and change around some of the content in memory and then an html email will be sent to all users who have expiring passwords. The script seems to have broke in the past week or so. Upon further investigation I've narrowed down the errors to the section where Powershell is supposed to create a new ComObject and write that HTML file to the ComObject. I now get the error : No coercion operator is defined between types 'System.Array' and 'System.String' At line:1