Skip to content

Error to import .html to Reports/ folder #15

@WiseLife42

Description

@WiseLife42

Hi,

I get the following error message when the script tries to import the report into the ‘Reports/’ folder:

C:\PingCastle\Pingcastle-Notify.ps1 : Error for move report file to logs directory
C:\PingCastle\PingCastle\ad_hc_$DOMAIN.html
Au caractère C:\PingCastle\Pingcastle-Notify.ps1:454 : 5
+     Write-Error -Message ("Error for move report file to logs directo ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Pingcastle-Notify.ps1

Surely it's because it can't add the date to the beginning of the name of my report?

Thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions