{"id":125,"date":"2008-07-07T17:01:17","date_gmt":"2008-07-07T17:01:17","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?page_id=125"},"modified":"2008-07-07T17:01:17","modified_gmt":"2008-07-07T17:01:17","slug":"vbscript-function-exportspending","status":"publish","type":"page","link":"https:\/\/www.wapshere.com\/missmiis\/vbscript-function-exportspending","title":{"rendered":"vbscript: Function ExportsPending"},"content":{"rendered":"<p>A simple function to check if any exports are ending before runing an Export. You can save time and transaction log space if you avoid running jobs which aren&#8217;t actually needed.<\/p>\n<blockquote><p>\u00c2\u00a0<\/p>\n<p>Dim MIIS_Service<br \/>\nSet MIIS_Service = GetObject(&#8220;winmgmts:root\\MicrosoftIdentityIntegrationServer&#8221;)<\/p>\n<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n&#8216;\u00c2\u00a0 Function ExportsPending<br \/>\n&#8216;\u00c2\u00a0 + Returns TRUE if objects are waiting to be exported<br \/>\n&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>Function ExportsPending(MA)<br \/>\n\u00c2\u00a0 Dim ManagementAgent<\/p>\n<p>\u00c2\u00a0 Set ManagementAgent = MIIS_Service.Get(&#8220;MIIS_ManagementAgent.Name='&#8221;&amp; MA &amp;&#8221;&#8216;&#8221;)<\/p>\n<p>\u00c2\u00a0 If (ManagementAgent.numExportAdd() + ManagementAgent.numExportUpdate() + ManagementAgent.numExportDelete()) &gt; 0 Then<br \/>\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 ExportsPending = TRUE<br \/>\n\u00c2\u00a0 Else<br \/>\n\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 ExportsPending = FALSE<br \/>\n\u00c2\u00a0 End If<br \/>\nEnd Function<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>A simple function to check if any exports are ending before runing an Export. You can save time and transaction log space if you avoid running jobs which aren&#8217;t actually needed. \u00c2\u00a0 Dim MIIS_Service Set MIIS_Service = GetObject(&#8220;winmgmts:root\\MicrosoftIdentityIntegrationServer&#8221;) &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216;\u00c2\u00a0 Function ExportsPending &#8216;\u00c2\u00a0 + Returns TRUE if objects are waiting to be exported &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Function&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-125","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/Pkp1o-21","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=125"}],"version-history":[{"count":0,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/125\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}