{"id":435,"date":"2009-11-29T01:14:32","date_gmt":"2009-11-28T17:14:32","guid":{"rendered":"http:\/\/www.jhouseconsulting.com\/?p=435"},"modified":"2009-11-29T01:14:32","modified_gmt":"2009-11-28T17:14:32","slug":"script-to-speedup-the-delivery-services-console-launch","status":"publish","type":"post","link":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/2009\/11\/29\/script-to-speedup-the-delivery-services-console-launch-435","title":{"rendered":"Script to Speedup the Delivery Services Console Launch"},"content":{"rendered":"<p>This script addresses a known issue where Delivery Services Console (DSC) or Access Management Console (AMC) takes longer than expected to launch. Refer to Citrix KB article CTX120115 for further information.<!--more--><\/p>\n<p><dirtycode:SpeedupDSCLaunch><br \/>\n&#8216; This script addresses a known issue where Delivery Services Console (DSC) or Access Management Console (AMC)<br \/>\n&#8216; takes longer than expected to launch. Refer to Citrix KB article CTX120115 for further information.<br \/>\n&#8216;<br \/>\n&#8216; Revision 1.0<br \/>\n&#8216; Written by Jeremy@jhouseconsulting.com on 20th May 2009.<br \/>\n&#8216;<br \/>\nOption Explicit<\/p>\n<p>Dim WshShell, strXmlFile, strXMLLocation, objFSO, objXMLFile<br \/>\nDim strProcessorArchitecture, strSystemRoot<\/p>\n<p>CONST ForWriting = 2<\/p>\n<p>set WshShell = WScript.CreateObject(&#8220;WScript.Shell&#8221;)<\/p>\n<p>strXmlFile = &#8220;mmc.exe.config&#8221;<br \/>\nstrProcessorArchitecture = WshShell.ExpandEnvironmentStrings(&#8220;%PROCESSOR_ARCHITECTURE%&#8221;)<br \/>\nstrSystemRoot = WshShell.ExpandEnvironmentStrings(&#8220;%SYSTEMROOT%&#8221;)<br \/>\nIf lcase(strProcessorArchitecture) = &#8220;x86&#8221; Then<br \/>\n  strXMLLocation = strSystemRoot &#038; &#8220;\\system32&#8221;<br \/>\nElse<br \/>\n  strXMLLocation = strSystemRoot &#038; &#8220;\\SysWOW64&#8221;<br \/>\nEnd If<\/p>\n<p>Set objFSO = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<\/p>\n<p>If objFSO.FolderExists (strXMLLocation) Then<br \/>\n  strXmlFile = strXMLLocation &#038; &#8220;\\&#8221; &#038; strXmlFile<br \/>\n  Set objXMLFile = objFSO.OpenTextFile(strXmlFile, ForWriting, True, 0)<\/p>\n<p>  objXMLFile.WriteLine &#8220;<?xml version=\"\"1.0\"\" encoding=\"\"UTF-8\"\"?>&#8221;<br \/>\n  objXMLFile.WriteLine &#8220;<configuration>&#8221;<br \/>\n  objXMLFile.WriteLine vbTab &#038; &#8220;<runtime>&#8221;<br \/>\n  objXMLFile.WriteLine vbTab &#038; vbTab &#038; &#8220;<generatePublisherEvidence enabled=\"\"false\"\" \/>&#8221;<br \/>\n  objXMLFile.WriteLine vbTab &#038; &#8220;<\/runtime>&#8221;<br \/>\n  objXMLFile.WriteLine &#8220;<\/configuration>&#8221; <\/p>\n<p>  objXMLFile.Close<br \/>\n  Set objXMLFile = Nothing<br \/>\nEnd If<\/p>\n<p>set WshShell = Nothing<br \/>\nSet objFSO = Nothing<\/p>\n<p>wscript.quit(0)<br \/>\n<\/dirtycode><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This script addresses a known issue where Delivery Services Console (DSC) or Access Management Console (AMC) takes longer than expected to launch. Refer to Citrix KB article CTX120115 for further information.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[5],"tags":[162,161,160,159,166],"class_list":["post-435","post","type-post","status-publish","format-standard","hentry","category-scripting","tag-access-management-console","tag-amc","tag-delivery-services-console","tag-dsc","tag-speedup"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":1,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":436,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/posts\/435\/revisions\/436"}],"wp:attachment":[{"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jhouseconsulting.com\/jhouseconsulting\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}