!ms-ecm-collection-list collection_name="All Systems" collection_type=Device !ms-ecm-device-collection-create collection_name="my new collection name" comment="my collection comment" limiting_collection_name="All Systems" !ms-ecm-device-collection-include collection_name="my new collection name" exclude_collection_name="Test" !ms-ecm-device-collection-exclude collection_name="my new collection name" exclude_collection_name="Test" !ms-ecm-device-collection-members-add device_resource_ids=16777220 collection_name="my new collection name" !ms-ecm-device-collection-members-by-query-add query_expression="select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where (ClientType = 1) OR (SMS_R_System.AgentEdition0 = 5)" rule_name="new Rule" collection_name="my new collection name" !ms-ecm-script-list script_name="XSOAR StartService" !ms-ecm-script-create script_name="My new script" script_text="$PSVersionTable" !ms-ecm-script-approve comment="Some comment" script_guid=394EDB29-5D89-4B9B-9745-A1F6DC8214E2 !ms-ecm-script-invoke script_guid=394EDB29-5D89-4B9B-9745-A1F6DC8214E2 collection_name="All Systems" poll_results=true !ms-ecm-script-invocation-results operation_id=16777267 !ms-ecm-user-last-log-on device_name=EC2AMAZ-2AKQ815 !ms-ecm-service-restart service_name=dnscache collection_name="All Systems" poll_results=true timeout=15 !ms-ecm-service-start service_name=dnscache collection_name="All Systems" poll_results=true timeout=15 !ms-ecm-service-stop service_name=dnscache collection_name="All Systems" poll_results=true timeout=15 !ms-ecm-device-list collection_name="All Systems" limit=1 !ms-ecm-device-get-collection-member device_names=EC2AMAZ-2AKQ815 !ms-ecm-device-get-resource device_names=EC2AMAZ-2AKQ815 !ms-ecm-get-user-device-affinity device_names=EC2AMAZ-2AKQ815