This article explains how to export and import a StoreFront subscription database on Storefront 3.6.
The previous versions of StoreFront had different commands to export and import a StoreFront subscription database. The previous commands are now obsolete.
The following is the previous StoreFront version commands:
Export-DSStoreSubscriptions –StoreName StoreName –FilePath DataFile
Import-DSStoreSubscriptions –StoreName StoreName –FilePath FilePath
Complete the following steps to export a StoreFront 3.6 subscription database:
Ensure that the StoreFront console is closed.
Add the Snapin Module using the following command:
"C:\Program Files\Citrix\Receiver StoreFront\Scripts\ImportModules.ps1“
In case of Windows 2008R2, you might need to enter the below commands as well to import the modules :
Import-Module Citrix.Storefront.Stores
Import-Module Citrix.Storefront.SubscriptionsStore
Define a variable for the store that you want to export the subscriptions from:
$OriginalStore = Get-STFStoreService /Citrix/Store (Replace "/Citrix/Store" with the correct store name)
Export the subscriptions using the following command:
Export-STFStoreSubscriptions -Store $OriginalStore -FilePath "$env:userprofile\desktop\export.txt"
Open the MMC on both StoreFront servers (Exporting from and Importing to).
Navigate to Stores > Select the store > Manage Delivery Controllers and confirm both Stores contain the same Delivery Controller's name and type.
Once verified, use the following commands to import the StoreFront database:
Define a variable for the store you want to import the subscriptions to:
$NewStore = Get-STFStoreService /Citrix/Store (Replace "/Citrix/Store" with the correct store name)
Import the subscriptions using the following command:
Import-STFStoreSubscriptions -Store $NewStore -FilePath "$env:userprofile\desktop\export.txt"