Returnvalue: 2147749891 in wmi EnableStatic method

Last Updated on June 13, 2012 by CSch

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.

Leave a Comment