Troubleshooting Code 800A03FD – Expected ‘Case’
Introduction to Code 800A03FD
Example 1 WMI
For both Examples, the Symptoms you get
The script does not execute as you had hoped. Instead. Windows Scripting host generates a message box like this picture:
For both Examples the Cause of Code 800A03FD
Your VBScript contain is missing a argument. Source: Microsoft VBScript compilation error, indicates an syntax error in a statement in your script. Compilation errors such as missing brackets are easy, but problems with Select … Case are more subtle. For more help let us check is the Line: number, (12 in example 1).
The Windows Scripting Host gives us three useful clues, firstly, look on Line: 10, do count any remark or empty lines. Secondly, the Char: number 8, is very useful in tracing the error. Thirdly, there is something wrong with the Select statement, which is confirmed in the message by Error: Expected ‘Case’.
The underlying problem is that Select * is inappropriate here. In VBScript ‘Select’ requires Case. ‘Select * from… WHERE’ is an SQL construction that is misused in this example. If you employ Select, then is should be in brackets:
Example 1 of Script showing Error 800A03FD
Check the Select * The problem is that you cannot say
Try Removing the where statement alltogether.
This Engineer’s Toolset v10 provides a comprehensive console of 50 utilities for troubleshooting computer problems. Guy says it helps me monitor what’s occurring on the network, and each tool teaches me more about how the underlying system operates.
There are so many good gadgets; it’s like having free rein of a sweetshop. Thankfully the utilities are displayed logically: monitoring, network discovery, diagnostic, and Cisco tools. Try the SolarWinds Engineer’s Toolset now!
Example 2 Pure Select Case Error 800A03FD
The problem is here on Line 16: Select objDisk.DriveType
The solution is: Select Case objDisk.DriveType
See More Windows Update Error Codes 8004 Series
Windows Management Instrumentation (WMI) is one of the hidden treasures of Microsoft operating systems. Fortunately, SolarWinds have created the WMI Monitor so that you can examine these gems of performance information for free. Take the guess work out of which WMI counters to use for applications like Microsoft Active Directory, SQL or Exchange Server.
Do you need additional help?
Give something back?
Would you like to help others? If you have a good example of this error, then please email me, I will publish it with a credit to you:
If you like this page then please share it with your friends