Altiris.ASDK.Agent.PackageServerAgentLib Get Packages does not return data that can be used. Instead errors occur if you attempt to interrogate the data contained in the returned object.
If the sample script (Agent Package Server.vbs) is run on a package server the vbs error, "The remote procedure call failed" is returned. Other errors are returned in other situations but always when trying to read the object returned by the Packages method.
The underlying code on the Package Server object returns incorrectly formatted data.