Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

Trying to execute manually DiscoverSQL2008DBEngineDiscovery.vbs I receive a vbs error: 'Expected 'Then'

$
0
0

Hi All,

I'm working in the troubleshooting of some undiscovered DDBB instances, I took the .vbs script from the SQL management pack, and when I try to execute it manually I always receive the same error:

DiscoverSQL2008DBEngineDiscovery.vbs(28, 25) Microsoft VBScript compilation error: Expected 'Then'

The line 28 has the following code:

    If oError.Number <> 0 Then ThrowScriptError "Unable to create automation object '" & sProgramId & "'", oError

I'm pretty sure that the code is correct because it comes with the management pack, I copied the correct portion of the XML, so I don't know the why of this error.

Thanks in advance,


Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>