Skip to content

Powershell Code PsLogging file creation error #13

@DixonDalmeida

Description

@DixonDalmeida

I am getting below error while executing PSLlogging via powershell core.

New-Item: C:\Users\Dixon\Documents\PowerShell\Modules\PSLogging\2.5.2\PSLogging.psm1:91:5
Line |
  91 |      New-Item -Path $sFullPath �ItemType File
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | A positional parameter cannot be found that accepts argument '�ItemType'.

The script works fine, Except it shows above Warning or error

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