Successfully using the EnableStatic method for example in powershell always gives the Returnvalue 0. If that is not the case, something will most likely have gone wrong.

If you are returned the value 2147749891, this is a sign for a lack of administrative rights. The action you want to perform with your script most likely goes beyond the rights of a normal user which is why you need to run your script as administrator.

Returnvalue: 2147749891 in wmi EnableStatic method
Tagged on:                     

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Ad #native_company# — #native_desc# #native_cta#