{"id":16052,"date":"2018-09-20T06:00:36","date_gmt":"2018-09-20T13:00:36","guid":{"rendered":"https:\/\/www.sapien.com\/blog\/?p=16052"},"modified":"2018-09-28T11:04:56","modified_gmt":"2018-09-28T18:04:56","slug":"powershell-studio-working-with-remote-systems-part-1","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2018\/09\/20\/powershell-studio-working-with-remote-systems-part-1\/","title":{"rendered":"PowerShell Studio: Working with Remote Systems (Part 1)"},"content":{"rendered":"<p>This is the first post in a blog series about working with remote systems using PowerShell Studio.<\/p>\n<p>The following topics are covered:<br \/>\nPart 1 &#8211; Caching Remote Systems PowerShell Modules<br \/>\nPart 2 &#8211; <a href=\"https:\/\/www.sapien.com\/blog\/2018\/09\/24\/powershell-studio-working-with-remote-systems-part-2\/\" target=\"_blank\" rel=\"noopener\">PowerShell remoting<\/a><\/p>\n<p>In this first installment I will show you how to use SAPIEN Technologies&#8217; Cache Export tool to collect module information from a remote system, and then use PowerShell Studio to create scripting solutions by using the exported cache.<\/p>\n<h3>Part 1 &#8211; Caching Remote Systems PowerShell Modules<\/h3>\n<p>The ability to access modules residing in remote systems allows us to create PowerShell solutions that span infrastructure and DevOps environments. <a href=\"https:\/\/store.sapien.com\/p-366-powershell-studio-2018.aspx\" target=\"_blank\" rel=\"noopener\">PowerShell Studio<\/a>\u00a0and <a href=\"https:\/\/store.sapien.com\/p-365-primalscript-2018.aspx\" target=\"_blank\" rel=\"noopener\">PrimalScript<\/a> include components, such as the &#8220;CacheExport2018.exe&#8221;, to help you access modules on remote systems.<\/p>\n<h3>Cache Export Executable<\/h3>\n<p>PowerShell Studio and PrimalScript include a component that will collect the module information from the remote system\u2014&#8221;<em>CacheExport.exe<\/em>&#8220;. This program will extract module information into a file which can be accessed from the Cache Editor feature in PowerShell Studio and PrimalScript.\u00a0The file &#8220;<em>CacheExport2018.zip<\/em>&#8221; contains the cache export executable.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_2018-09-07_14-33-39.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16057\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_2018-09-07_14-33-39-300x81.jpg\" alt=\"\" width=\"581\" height=\"157\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_2018-09-07_14-33-39-300x81.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_2018-09-07_14-33-39-768x207.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_2018-09-07_14-33-39.jpg 814w\" sizes=\"auto, (max-width: 581px) 100vw, 581px\" \/><\/a><\/p>\n<h4>CacheExport2018.zip Location<\/h4>\n<p>&#8220;<em>CacheExport2018.zip<\/em>&#8221; is located in the SAPIEN Technologies products installation folder under &#8220;<em>Redistributables<\/em>&#8220;:<\/p>\n<p>PowerShell Studio file location:<\/p>\n<blockquote><p>&#8220;<em>C:\\Program Files\\SAPIEN Technologies, Inc\\PowerShell Studio 2018\\Redistributables<\/em>&#8221;<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16054\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49-300x78.jpg\" alt=\"\" width=\"758\" height=\"197\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49-300x78.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49-768x199.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49-848x220.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PowerShellStudio_ExportCache_2018-09-07_13-55-49.jpg 901w\" sizes=\"auto, (max-width: 758px) 100vw, 758px\" \/><\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<p>PrimalScript file location:<\/p>\n<blockquote><p>&#8220;<em>C:\\Program Files\\SAPIEN Technologies, Inc\\PrimalScript 2018\\Redistributables<\/em>&#8221;<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16055\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49-300x63.jpg\" alt=\"\" width=\"781\" height=\"164\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49-300x63.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49-768x162.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49-848x179.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/PrimalScript_ExportCache_2018-09-07_13-55-49.jpg 901w\" sizes=\"auto, (max-width: 781px) 100vw, 781px\" \/><\/a><\/p>\n<p>&nbsp;<\/p><\/blockquote>\n<h3>Building the Cache Export File from a Remote System<\/h3>\n<p>The files in &#8220;<em>CacheExport2018.zip<\/em>&#8221; need to be extracted on the server where you are going to create the Export Cache file.\u00a0 The steps outlined below are my preferred method because I don&#8217;t have to copy over the executable or leave it on the server.<\/p>\n<p>&nbsp;<\/p>\n<h4>Use Shared Folder<\/h4>\n<ol>\n<li>Create a shared folder locally.<\/li>\n<li>Copy &#8220;<em>CacheExport2018.zip<\/em>&#8221; to the shared folder and extract the files, which\u00a0will create the &#8220;<em>CacheExport2018<\/em>&#8221; folder containing the executable &#8220;<em>CacheExport.exe<\/em>&#8220;.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16064\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39-300x157.jpg\" alt=\"\" width=\"566\" height=\"296\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39-300x157.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39-768x403.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39-1024x537.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39-848x445.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/SharedFolder_2018-09-07_14-33-39.jpg 1129w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16062\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39-300x166.jpg\" alt=\"\" width=\"567\" height=\"314\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39-300x166.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39-768x425.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39-1024x567.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39-848x469.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared_2018-09-07_14-33-39.jpg 1146w\" sizes=\"auto, (max-width: 567px) 100vw, 567px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared2_2018-09-07_14-33-39.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16063\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared2_2018-09-07_14-33-39-300x90.jpg\" alt=\"\" width=\"493\" height=\"148\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared2_2018-09-07_14-33-39-300x90.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/ExportCacheZip_Shared2_2018-09-07_14-33-39.jpg 753w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/a><\/p>\n<p>Now we can proceed to connect to this shared folder from the remote system.<\/p>\n<p>&nbsp;<\/p>\n<h4>Connect to the Shared Folder from the Remote System<\/h4>\n<ol>\n<li>Open a Remote Desktop session to the remote system.<\/li>\n<li>Use PowerShell or File Explorer to map a drive (x:) to the shared folder that contains the Cache Export executable.<\/li>\n<li>Navigate to the attached shared folder (e.g.,\u00a0\u00a0<em>x:\\CacheExport2018<\/em>).<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16065\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21-300x187.jpg\" alt=\"\" width=\"613\" height=\"382\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21-300x187.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21-768x480.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21-1024x640.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21-848x530.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_01_2018-09-07_15-29-21.jpg 1442w\" sizes=\"auto, (max-width: 613px) 100vw, 613px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16070\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21-300x188.jpg\" alt=\"\" width=\"554\" height=\"347\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21-300x188.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21-768x482.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21-1024x642.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21-848x532.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_02a_2018-09-07_15-29-21.jpg 1437w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16067\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21-300x211.jpg\" alt=\"\" width=\"514\" height=\"362\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21-300x211.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21-768x540.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21-1024x720.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21-848x596.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RPD_03_2018-09-07_15-29-21.jpg 1142w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>Build the Cache File<\/h4>\n<ol>\n<li>Run &#8220;<em>CacheExport.exe<\/em>&#8221; to build the cache file:\n<ul>\n<li>If using PowerShell Console, type the program name <em>CacheExport<\/em>\u00a0&lt;Tab&gt;, then press &lt;Enter&gt; to execute.<\/li>\n<li>If using File Explorer, just double-click on the file name &#8220;<em>CacheExport.exe<\/em>&#8220;.<\/li>\n<\/ul>\n<\/li>\n<li>In the Cache Export pop-up window, change the\u00a0<em>Export cache files to:<\/em> filepath to the shared folder.<\/li>\n<li>Select\u00a0<em>Rebuild All Cache Files<\/em> to build the export file.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16072\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56-300x189.jpg\" alt=\"\" width=\"533\" height=\"336\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56-300x189.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56-768x483.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56-1024x644.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56-848x533.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_01_2018-09-07_16-19-56.jpg 1436w\" sizes=\"auto, (max-width: 533px) 100vw, 533px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16073\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56-300x188.jpg\" alt=\"\" width=\"535\" height=\"335\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56-300x188.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56-768x481.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56-1024x641.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56-848x531.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_02_2018-09-07_16-19-56.jpg 1440w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/a><\/p>\n<p>At the end of this process, select <em>Save<\/em> to\u00a0store the cache file in the shared folder.<\/p>\n<p>Reminder: This folder resides where you will use PowerShell Studio (or PrimalScript) to access the exported cache modules.<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03b_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-16077\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03b_2018-09-07_16-19-56-300x219.jpg\" alt=\"\" width=\"300\" height=\"219\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03b_2018-09-07_16-19-56-300x219.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03b_2018-09-07_16-19-56.jpg 481w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03_2018-09-07_16-19-56.jpg\">\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-16074\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03_2018-09-07_16-19-56-300x222.jpg\" alt=\"\" width=\"300\" height=\"222\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03_2018-09-07_16-19-56-300x222.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_03_2018-09-07_16-19-56.jpg 480w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_04_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16075\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_04_2018-09-07_16-19-56-300x88.jpg\" alt=\"\" width=\"528\" height=\"155\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_04_2018-09-07_16-19-56-300x88.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_04_2018-09-07_16-19-56-768x224.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_04_2018-09-07_16-19-56.jpg 801w\" sizes=\"auto, (max-width: 528px) 100vw, 528px\" \/><\/a><\/p>\n<p>IMPORTANT: The Cache Export file naming format is &#8220;&lt;<em>servername&gt;.<\/em>CacheExport&#8221;. <em><strong>Please do not rename this file<\/strong>.<\/em><\/p>\n<p>&nbsp;<\/p>\n<h4>Load the Exported Cached Modules<\/h4>\n<p>The &#8220;&lt;<em>servername&gt;.<\/em>CacheExport&#8221;\u00a0file has been created from the remote system. Now we can access the file from PowerShell Studio. On the Home ribbon &gt; in the Platform section &gt; select Import Remote Cache:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_05_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-16080\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_05_2018-09-07_16-19-56-300x76.jpg\" alt=\"\" width=\"300\" height=\"76\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_05_2018-09-07_16-19-56-300x76.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_05_2018-09-07_16-19-56.jpg 739w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Navigate to the &#8220;&lt;<em>servername&gt;.<\/em>CacheExport&#8221; file and click\u00a0Open:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16081\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56-300x189.jpg\" alt=\"\" width=\"599\" height=\"377\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56-300x189.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56-768x485.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56-1024x647.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56-848x535.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_06_2018-09-07_16-19-56.jpg 1435w\" sizes=\"auto, (max-width: 599px) 100vw, 599px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>In the Import Remote Cache\u00a0dialog, select the <em>Using Windows PowerShell Remoting<\/em>\u00a0checkbox &gt; enter the user credentials &gt; then click <em>OK<\/em>:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_07a_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-16093\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_07a_2018-09-07_16-19-56-300x167.jpg\" alt=\"\" width=\"300\" height=\"167\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_07a_2018-09-07_16-19-56-300x167.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_07a_2018-09-07_16-19-56.jpg 508w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<h4>Access the Exported Cached Modules<\/h4>\n<p>In the Platform section,\u00a0 change the selection from &#8220;<em>Local Machine<\/em>&#8221; to the remote system name (e.g., &#8220;<em>SUN<\/em>&#8220;):<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_08_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-16083\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_08_2018-09-07_16-19-56.jpg\" alt=\"\" width=\"185\" height=\"98\" \/><\/a><\/p>\n<p>After selecting the remote system name, the Object Browser panel will refresh and display the Remote System modules as well as any installed snap-ins<strong>*<\/strong>:<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16084\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56-300x189.jpg\" alt=\"\" width=\"623\" height=\"393\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56-300x189.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56-768x483.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56-1024x644.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56-848x533.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/RunCache_09_2018-09-07_16-19-56.jpg 1440w\" sizes=\"auto, (max-width: 623px) 100vw, 623px\" \/><\/a><\/p>\n<p><em><strong>*<\/strong>Note: PowerShell snap-ins will not be supported in the newer version of PowerShell (&gt; v5).<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>Now all of the the remote system modules are accessible from the PowerShell Studio Editor.<\/p>\n<p>You can also use the PowerShell Cache Editor to select\/deselect modules from the remote system (in the Platform section &gt; select the desired machine &gt; then click the Edit Cache button):<\/p>\n<p><a href=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-16100\" src=\"https:\/\/www.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03-300x179.jpg\" alt=\"\" width=\"620\" height=\"370\" srcset=\"https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03-300x179.jpg 300w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03-768x459.jpg 768w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03-1024x612.jpg 1024w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03-848x507.jpg 848w, https:\/\/dev.sapien.com\/blog\/wp-content\/uploads\/2018\/09\/CacheEditor_2018-09-12_9-07-03.jpg 1438w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p><em>*Note: When selecting a &#8220;Computer&#8221; from the list in the PowerShell Cache Editor, all checked modules belong to the selected computer.<\/em><\/p>\n<p>&nbsp;<\/p>\n<p>In our next blog post I will cover &#8220;<em>PowerShell Studio:\u00a0Using PowerShell Remote<\/em>&#8220;.<\/p>\n<h3>Related Articles<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2012\/10\/15\/developing-powershell-scripts-for-other-machines-part-1\/\">Developing PowerShell scripts for other machines (Part 1)<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2018\/01\/02\/video-featuring-powershell-studio-cache-editor\/\">Video featuring PowerShell Studio Cache Editor<\/a><\/li>\n<li><a href=\"https:\/\/www.sapien.com\/blog\/2017\/12\/07\/powershell-studio-feature-nugget-refreshing-local-cache-powershell-cmdlets-and-modules\/\">PowerShell Studio Feature Nugget \u2013 Refreshing Local Cache PowerShell Cmdlets and Modules<\/a><\/li>\n<\/ul>\n<h3>Feedback<\/h3>\n<p>As always, if you have any ideas, comments, or feedback, please\u00a0<a href=\"https:\/\/www.sapien.com\/forums\/viewforum.php?f=23\" target=\"_blank\" rel=\"noopener\">visit our feedback forum<\/a>\u00a0and reference this post.<\/p>\n<p>&nbsp;<\/p>\n<p><em>Max Trinidad is a Technology Evangelist at SAPIEN Technologies Inc., and a Microsoft PowerShell MVP. You can reach him at\u00a0<a href=\"mailto:maxt@sapien.com\">maxt@sapien.com<\/a><\/em><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the first post in a blog series about working with remote systems using PowerShell Studio. The following topics are covered: Part 1 &#8211; Caching Remote Systems PowerShell Modules Part 2 &#8211; PowerShell remoting In this first installment I will show you how to use SAPIEN Technologies&#8217; Cache Export tool to collect module information [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[941,1262,703,410,25],"tags":[753,961,1080,1016,37,36,973,997],"class_list":["post-16052","post","type-post","status-publish","format-standard","hentry","category-powershell-5-0","category-powershell-module","category-powershell-studio","category-primalscript-software-news","category-windows-powershell","tag-module","tag-powershell-5-0","tag-powershell-modules","tag-powershell-studio","tag-primalscript","tag-remote","tag-remote-powershell","tag-windows-powershell"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/16052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=16052"}],"version-history":[{"count":75,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/16052\/revisions"}],"predecessor-version":[{"id":16374,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/16052\/revisions\/16374"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=16052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=16052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=16052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}