Jump to content
Welcome to our new Citrix community!

Export Storefront Configuration


Paul Morrison

Recommended Posts

Hey All,

 

I am trying to relocate my storefront configuration to a new set of servers and I'm not having any luck with the Export-STFConfiguration command. This is what I get:

 

PS C:\Windows\system32> Export-STFConfiguration -TargetFolder c:\temp -ZipFileName "backup" -NoEncryption
Export-STFConfiguration : An error occurred configuring StoreFront diagnostics. The running command stopped because
the preference variable "ErrorActionPreference" or common parameter is set to Stop: Cannot remove item
C:\UsersAppData\Local\Temp\Citrix\TemporaryStoreFrontConfigurationFolder\Receiver
Clients\Windows\CitrixReceiver.exe: You do not have sufficient access rights to perform this operation.
At line:1 char:1
+ Export-STFConfiguration -TargetFolder c:\temp -ZipFileName "backup" -NoEncryptio ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Export-STFConfiguration], Exception
    + FullyQualifiedErrorId : System.Management.Automation.ActionPreferenceStopException,Citrix.StoreFront.ExportConfi
   guration

 

It seems this is a temp file/folder created by the export command to first dump the config and then zip it. I assume I am missing something rather simple as I cannot find anything on this error anywhere else. I have also tried creating the credential object as per the documentation but regardless, I still get this error. As a result I cannot import either. Can anyone advise how I can get around this? 

 

Thanks;

Link to comment
Share on other sites

Ok so renaming the Receiver Client folder has allowed me to export the configuration without error. Importing is now giving me an issue. I've tried the same trick with the Receiver Client folder but that doesn't appear to be the issue on the import side. I've also stopped all storefront services but I get the same error each time:

 

PS C:\Windows\system32> Import-STFConfiguration -ConfigurationZip C:\Users\Desktop\backup.zip
Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. Method invocation failed because
[system.Collections.Hashtable+ValueCollection] does not contain a method named 'Contains'.
At line:1 char:1
+ Import-STFConfiguration -ConfigurationZip C:\Users\Desktop\backup.zip
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [import-STFConfiguration], Exception
    + FullyQualifiedErrorId : System.Management.Automation.CmdletInvocationException,Citrix.StoreFront.ImportConfigura
   tion
Link to comment
Share on other sites

  • 8 months later...

I also have a problem, at the moment of "import":

 

Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. The property 'Count' 
cannot be found on this object. Verify that the property exists.
At line:1 char:1
+ Import-STFConfiguration -configurationZip "C:\Software\SRVBRIXDSF002. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-STFConfiguration], Exception
    + FullyQualifiedErrorId : System.Management.Automation.CmdletInvocationException,Citrix.StoreFron 
   t.ImportConfiguration

Link to comment
Share on other sites

  • 2 months later...

Work around that worked for me.

 

  1. Open PS as Admin
  2. Run "C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\AdminServiceLoader.ps1"
  3. Copy C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\ConfigurationManagement.psm1 to something like C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\ConfigurationManagement-mod.psm1
  4. Comment out the line with "set-strictmode" (line 5)
  5. Remove the signature block SIG # Begin signature block and save -mod file. Import modified module with command
    Import-Module "C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\ConfigurationManagement-mod.psm1" -Force

     

  6. Now use Import-DSConfiguration with the same parameters as Import-STFConfiguration.  Example..
    Import-DSConfiguration -configurationZip "C:\Storefrontconfigs\MYNEW.zip"

     

 

  • Like 4
Link to comment
Share on other sites

  • 2 months later...

In process of importing and exporting StoreFront Configuration using PowerShell Cmdlets, I got this issues while importing to new server:-

 

Import-STFConfiguration : An error occurred configuring StoreFront diagnostics. The property 'Count' cannot be found on this object. Verify that the property exists.
At line:1 char:1
+ Import-STFConfiguration -configurationZip "$env:userprofile\desktop\b ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Import-STFConfiguration], Exception
    + FullyQualifiedErrorId : System.Management.Automation.CmdletInvocationException,Citrix.StoreFront.ImportConfiguration

 

Can anyone please me to understand this error? 

Link to comment
Share on other sites

  • 10 months later...

below is the process I follow when importing storefront configuration when building "Test" storefront servers to test patching and new configurations.

 

1. build new test storefront windows server

2. install storefront

3. open storefront on the new server and create a new store. (I normally name it anything, and when the new configuration is imported it will change it)

3. export configuration of production storefront server

4. import production backup to the new server

 

I have gotten the above error "The property 'Count' cannot be found on this object. Verify that the property exists." and I think the only thing I did to fix this is to create a dummy store before importing the configuration on the new server.

 

  • Like 2
Link to comment
Share on other sites

  • 6 months later...
  • 3 years later...

Thanks all, this post help me to migrate from W2012 to W2019

1 -> export-stfconfiguration  from old Strofrefront in local Admin (error "C:\Users\user~1.name does not exist" ... with domain account)

2 -> connect new Storefront in local admin and create a fake store (Error "The property 'Count' cannot be found on this object" if no store existing)

3 -> import-stfconfiguration => import OK

The fake store is updated with imported configuration information

Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...