Export Cache from remote machines

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 8 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
fatnasa
Posts: 20
Last visit: Tue Dec 04, 2018 6:33 am

Export Cache from remote machines

Post by fatnasa »

Hello,

I'm using the latest version PS-studio 2012 and a trail version of 2015.


i have tried both while i was trying to export cache from a remote machine running 2008 R2 which has Exchange 2007 installed ,so it seems to be exporting all commands except exchange cmdlets.

i have tested also against Windows 2012 with exchange 2013 installed and yet no exchange commands are being cached / exported.

could you please help me?

thanks in advance.
User avatar
SAPIEN Support Forums
Posts: 945
Last visit: Thu Oct 22, 2015 1:10 pm

Export Cache from remote machines

Post by SAPIEN Support Forums »

This is an automated post. A real person will respond soon.

Thank you for posting, fatnasa.

Did you remember to include the following?
  • 1. Product, version and build (e.g. Product: PowerShell Studio 2014, Version & Build: 4.1.71. Version and build information can be found in the product's About box accessed by clicking the blue icon with the 'i' in the upper right hand corner of the ribbon.)
    2. Specify if you are running a 32 or 64 bit version
    3. Specify your operating system and if it is 32 or 64 bit.
    4. Attach a screenshot if your issue can be seen on the screen
    5. Attach a zip file if you have multiple files (crash reports, log entries, etc.) related to your issue.
If not, please take a moment to edit your original post or reply to this one.

*** Make sure you do not post any licensing information ***
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Export Cache from remote machines

Post by davidc »

Exchange ways has been a Snapin that fails to load unless in a specific environment. You can get around this by copying the pre-cached files to the server:

C:\ProgramData\SAPIEN\CachedData 2012\Local Machine\ModuleCacheV3\
C:\ProgramData\SAPIEN\CachedData 2012\Local Machine\ModuleCacheV2\

Copy all the Microsoft.Exchange.Management.PowerShell* files and place them in the same location on the server. Then run the 2012 Export tool once again.

David
David
SAPIEN Technologies, Inc.
User avatar
fatnasa
Posts: 20
Last visit: Tue Dec 04, 2018 6:33 am

Re: Export Cache from remote machines

Post by fatnasa »

thanks a lot, I'm going to try this
User avatar
fatnasa
Posts: 20
Last visit: Tue Dec 04, 2018 6:33 am

Re: Export Cache from remote machines

Post by fatnasa »

Hello,

i have tried to follow the mentioned action but i couldn't find :

Microsoft.Exchange.Management.PowerShell* files any where

Get-PSSnapin -Registered << shows Exchange snapins while snapinv2_64bit.log doesn't list the exchange snapins.

any idea, how can i export the exchange cmdlets?
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Export Cache from remote machines

Post by davidc »

I'm sorry, it seems that 2012 did not have a preset cache and will not support this method.

If you are using 2015, you can copy the files from this cache folder:

C:\ProgramData\SAPIEN\PresetCache 2015\ModuleCacheV3


David
David
SAPIEN Technologies, Inc.
User avatar
fatnasa
Posts: 20
Last visit: Tue Dec 04, 2018 6:33 am

Re: Export Cache from remote machines

Post by fatnasa »

i still cannot find these files anywhere..

do you know where are they located?

thanks in advance.
User avatar
fatnasa
Posts: 20
Last visit: Tue Dec 04, 2018 6:33 am

Re: Export Cache from remote machines

Post by fatnasa »

both CacheExport 2015 and 2012 don't detect exchange 2007/2010 or 2013 snapins and cmdlets.

the only workaround i have found is to to install PS studio on the server itself with exchange installed then export cache ..

any idea to export the cache without install PS studio ?

thanks in advance.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Export Cache from remote machines

Post by davidc »

You can copy the following folder to the server without having to install PowerShell Studio:

C:\ProgramData\SAPIEN\PresetCache 2015\


David
David
SAPIEN Technologies, Inc.
This topic is 8 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.