Troubleshooting Code 800A03EE – Expected ‘)’This Error 800A03EE can be tricky. While it is indeed a syntax error, it may not be where you expect. Therefore, check the Char: Number for the line of this error. Introduction to Code 800A03EEError code 800A03EE occurs when you execute a VBScript. You receive a message box from Windows Scripting Host. Code 800A03EE means a syntax error, check your punctuation especially the ampersands. The Symptoms You GetThe script does not execute as you hoped, instead you get a WSH error message. The Cause of Code 800A03EEYour VBScript contain is missing a argument. Note: The clue, Error: Expected ")’. There is something wrong with a bracket or a speech mark. Source: Microsoft VBScript compilation error, means there is a syntax error in your script, rather than a logical error with a server or network object. The SolutionsThe Windows Scripting Host gives us three useful clues, firstly, look on Line: 6, do count any remark or empty lines. Secondly, the Char: number (34), is very useful in tracing the error. In this case there is something wrong at the end of line 6. Thirdly Error: ‘)’ is pointing us to the script problem. Therefore, check the syntax of your script and balance your brackets. ‡ Example 1 of Script Code 800A03EE errorNote: The Line: 6 Char 34 strcn It should be strcn) note the closing bracket
‘CREATE USER AND SET PASSWORD Corrected Version
‘CREATE USER AND SET PASSWORD
Example 2 – Missing ampersandSometimes Expected ‘)’ is not the true problem, the real villain is the ampersand, or to be precise the missing ampersand (&).
In terms of troubleshooting, we need to check Line: 11, Char: 37. There should be an ampersand : Set objDomain = GetObject("LDAP://" & strContainer)
‘ CreateOU.vbs Set objDomain = GetObject("LDAP://" strContainer) WSCript.Echo"Created OU " & strNewOU ‘ End of Script
Example 3 of Script Code 800A03EE errorHere is another example of Code 800A03EE , note the position of the speech marks, it should be: Set objOU =GetObject("LDAP://ou=Worcester,dc=CP,dc=com")
‘ BindAD.vbs
See More Windows Update Error Codes 8004 Series• Error 800A101A8 Object Required •Error 800A0046 •Error 800A10AD •Error 800A000D • Error 80048820 •Error 800A0401 •Review of SolarWinds Permissions Monitor • Error 80040E14 • Error 800A03EA • Error 800A0408 • Error 800A03EE Guy Recommends: WMI Monitor and It’s Free!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. Download your free copy of WMI Monitor 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
|