The ReturnItems method submits objects to Operations Manager. For this method to be successful, objects must have been previously added to the in-memory array with MOMScriptAPI.AddItem. The objects must either be a group of MOMDiscoveryData objects or MOMPropertyBag objects, but never both.
If you are running this script outside Operations Manager, this XML string can be displayed in a console window. The management pack must be prepared and inserted as a rule to be run from Operations Manager.
For an example of how to use ReturnItems, see the MOMScriptAPI.CreateTypedPropertyBag topic.
Platforms: Requires Windows Server 2003, Windows Vista, or Windows Server 2008.
Version: Requires Operations Manager 2007 or System Center 2012 – Operations Manager