Skip to content

Error.log - Cannot overwrite variable #210

@gib-sec

Description

@gib-sec

Hi,

I am receiving the following errors in the error.log when using kansa. Can you help please?

Get-WMIRecentApps reports error on XXX: "Invalid namespace Cannot overwrite variable CMPNAMELENGTH because it is read-only or constant. Cannot overwrite variable SEPARATOR because it is read-only or constant. Cannot overwrite variable EXTLENGTH because it is read-only or constant. Cannot overwrite variable MAXPATH because it is read-only or constant."
Get-Netstat reports error on XXX: "Cannot overwrite variable CMPNAMELENGTH because it is read-only or constant. Cannot overwrite variable SEPARATOR because it is read-only or constant. Cannot overwrite variable EXTLENGTH because it is read-only or constant. Cannot overwrite variable MAXPATH because it is read-only or constant."
Get-DNSCache reports error on XXX: "Cannot overwrite variable CMPNAMELENGTH because it is read-only or constant. Cannot overwrite variable SEPARATOR because it is read-only or constant. Cannot overwrite variable EXTLENGTH because it is read-only or constant. Cannot overwrite variable MAXPATH because it is read-only or constant."
Get-ProcsWMI reports error on XXX: "Cannot overwrite variable CMPNAMELENGTH because it is read-only or constant. Cannot overwrite variable SEPARATOR because it is read-only or constant. Cannot overwrite variable EXTLENGTH because it is read-only or constant. Cannot overwrite variable MAXPATH because it is read-only or constant."
Exit-Script function was passed an error, this may be a duplicate that wasn't previously cleared, or Kansa.ps1 has crashed.
You cannot call a method on a null-valued expression.
Cannot overwrite variable CMPNAMELENGTH because it is read-only or constant.
Cannot overwrite variable SEPARATOR because it is read-only or constant.
Cannot overwrite variable EXTLENGTH because it is read-only or constant.
Cannot overwrite variable MAXPATH because it is read-only or constant.

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