That isn't OpusScript - it's VBScript. I'm not sure if you're simply trying to drop that code directly into Opus, but if so, you can! Also the code doesn't work:
Create a VBS file and use:
Code:
strServer = "."
Set objWMI = GetObject("winmgmts://" & strServer & "/root\cimv2")
Set objInstances = objWMI.InstancesOf("Win32_BaseBoard",48)
On Error Resume Next
For Each objInstance in objInstances
With objInstance
WScript.Echo .SerialNumber
End With
On Error Goto 0
Next
However, you'll need to either run it from a command prompt and output to text or add a write to file feature into the script to get the serial number into a text file which can then be read by Opus.
Mack