Skip to content

Getting error on line 159, about a "Type Mismatch" re: HTML TOC creation #1

Description

@kapshure

Loving what I have seen so far, but can't get the HTML TOC portion to work. Keep getting this error message

Exception calling "write" with "1" argument(s): "Type mismatch.
"
At C:\users\jwiggins\scratch\RecurringADChecks\RecurringADChecks.ps1:159 char:1
+ $HTMLObject.write([System.Text.Encoding]::Unicode.GetBytes($HTMLRepor ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : COMException

any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions