Thanks to a posting on Scott Moss’ blog site at http://myitforum.com/cs2/blogs/smoss/default.aspx, I was able to resolve a troublesome MOM alert regarding an SMS script error on a remote server. I am adding this information to my blog site so that others can benefit, but even moreso so that it is easily available to me in case I need to refer to it again in the future.
Description
SMS 2003 Management Point Availability: Script error. The script ‘SMS 2003 Monitor Management Point Availability’ running under processing rule ‘SMS 2003 Management Point Availability: Monitoring’ encountered runtime error. Failed to load script variables. The error returned was: ‘Invalid procedure call or argument’ 5 (0×5)
The Problem
The script was failing because it was expecting to find a value in the file C:\WINDOWS\temp\SMS 2003 Management Point Availability.varset on the SMS server. As Scott found in his instance, the file was empty on the server and was causing the script to fail.
The Fix
Delete the file C:\WINDOWS\temp\SMS 2003 Management Point Availability.varset. The next time the script runs it should recreate the file and contain data listing StartDateTime and UnavailableDuration. In my case, within five minutes the file had been recreated and contained the expected data. The script error alerts have ceased!
Posted by Jim Doyle 