Thanks for the response. I get the same result whether I use a string or the guid property from the item object. I tried the Item object just to demonstrate it was working for a different object class.
For example this script:
'=======================================================================
set reportManagement = CreateObject("Altiris.ASDK.NS.ReportManagement")
reportManagement.TargetServer = "localhost"
reportManagement.Authenticate()
reportGuid = "1f382791-b2cf-4b39-afd3-28348693c44e"
wscript.echo reportguid
set results = reportManagement.RunReport(reportguid)
'=======================================================================
returns:
C:\Temp>cscript test2.vbs
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.
1f382791-b2cf-4b39-afd3-28348693c44e
C:\Temp\test2.vbs(9, 1) Altiris.ASDK.NS.COM: Method failed. Exception: Guid shou
ld contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
If I try the CLI it works fine. Its almost like the Altiris.ASDK.NS.ReportManagement object is damaged in some way. Whether its the code or a bug on my server I don't know.
I've tried uninstalling/re-installing the asdk and repairing the whole ITMS solution with the SIM with no change.
The server is 100% patched up to date via Windows Update.