Missing Win32_Product
Today I spent some frustrating time debugging a VBScript looking for an authentication problem that didn't exist. I was trying to a install an MSI file on a remote server and kept getting "SWbemServicesEx: A security package specific error occurred."
Googling the error only drove me further in the wrong way. Only when I decided to run the script locally on the target computer I realised it wasn't an authentication problem. At least not any more.
The error was now "SWbemServicesEx: Not found". I then noticed the Win32_Product class I was using to install the MSI files did not exist. I googled for the error and found lots of people with the same problem but no straightforward solution. Well... it turns out this was not the first time this happened to me... Maybe the next time this happens I google it and find my own blog post with the answer. It's as simple as this:
You might need the installation disk or at least the i386 folder.
Googling the error only drove me further in the wrong way. Only when I decided to run the script locally on the target computer I realised it wasn't an authentication problem. At least not any more.
The error was now "SWbemServicesEx: Not found". I then noticed the Win32_Product class I was using to install the MSI files did not exist. I googled for the error and found lots of people with the same problem but no straightforward solution. Well... it turns out this was not the first time this happened to me... Maybe the next time this happens I google it and find my own blog post with the answer. It's as simple as this:
- "Add/Remove Programs"
- "Add/Remove Windows Components"
- "Management and Monitoring Tools"
- check "WMI Windows Installer Provider."
- "OK", "Next" and "Finish"
You might need the installation disk or at least the i386 folder.
Awesome! Thanks! :)
ReplyDeleteGot me too. Thanks!
ReplyDeleteTHANK YOU for writing that. You just saved me a lot of time.
ReplyDeleteExcellent ! time saved!
ReplyDeleteBy the way, how do you check a class exists or not...
Trying to use a class and getting "SWbemServicesEx: Not found" is a good hint. But there are lots of ways to see what classes are available.
ReplyDeleteTry this:
http://www.google.com/search?rlz=1C1CHMB_en-GBPT299PT304&sourceid=chrome&ie=UTF-8&q=list+wmi+classes
Thanks, this is really easier method than registering missing .mof and .dll files.
ReplyDeletethank you i spent few hours troubleshooting this error in my PSHELL script...
ReplyDelete