Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error.log - Cannot overwrite variable #210

Open
gib-sec opened this issue Aug 26, 2020 · 2 comments
Open

Error.log - Cannot overwrite variable #210

gib-sec opened this issue Aug 26, 2020 · 2 comments

Comments

@gib-sec
Copy link

gib-sec commented Aug 26, 2020

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.

@Bapped
Copy link

Bapped commented Sep 12, 2020

Having the same issue

@ghost
Copy link

ghost commented Sep 14, 2020

Submitted a pull request that fixes this issue. #211

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants