Paul Morrison Posted April 13, 2017 Share Posted April 13, 2017 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 More sharing options...
CarlStalhood Posted April 13, 2017 Share Posted April 13, 2017 Sometimes the permissions on the files under C:\Program Files\Citrix\Receiver StoreFront\Receiver Clients are not correct. Try propagating permissions to those files. Link to comment Share on other sites More sharing options...
Paul Morrison Posted April 14, 2017 Author Share Posted April 14, 2017 Thanks Carl. Unfortunately that doesn't seem to help. I've even given myself full control permissions on that folder and propegated but I still get the same error running the export. Link to comment Share on other sites More sharing options...
Paul Morrison Posted April 14, 2017 Author Share Posted April 14, 2017 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 More sharing options...
Paul Morrison Posted April 20, 2017 Author Share Posted April 20, 2017 Any other ideas here? I really don't want to have to re-configure storefront from scratch here so if anyone has any ideas please let me know. Thanks. Link to comment Share on other sites More sharing options...
Martinho Hinterholz1709157929 Posted January 9, 2018 Share Posted January 9, 2018 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 More sharing options...
Ryan Butler1709155785 Posted April 3, 2018 Share Posted April 3, 2018 Work around that worked for me. Open PS as Admin Run "C:\Program Files\Citrix\Receiver StoreFront\Management\Cmdlets\AdminServiceLoader.ps1" 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 Comment out the line with "set-strictmode" (line 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 Now use Import-DSConfiguration with the same parameters as Import-STFConfiguration. Example.. Import-DSConfiguration -configurationZip "C:\Storefrontconfigs\MYNEW.zip" 4 Link to comment Share on other sites More sharing options...
Owen Reynolds1709159121 Posted April 5, 2018 Share Posted April 5, 2018 Ryan's above fix ^^^ worked for me as well. Great find! Link to comment Share on other sites More sharing options...
Suk Sapkota1709159748 Posted June 5, 2018 Share Posted June 5, 2018 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 More sharing options...
Randy Lorfing1709157682 Posted April 11, 2019 Share Posted April 11, 2019 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. 2 Link to comment Share on other sites More sharing options...
Matias Migone1709161438 Posted November 8, 2019 Share Posted November 8, 2019 Ryan, you are the best. My experience, after Clear-STFDeployment a file still remain into one of the sites folders, so Import keep failling, after delete it i was able to import using Ryan workaround Regards Link to comment Share on other sites More sharing options...
Jerome MIGNON1709158746 Posted December 9, 2022 Share Posted December 9, 2022 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 More sharing options...
Kamil Matusiak1709163187 Posted May 9, 2023 Share Posted May 9, 2023 Hi All, For the issue with "The property 'Count' " it was solved for me by including the -hostbaseurl parameter in the import command - with this import continiued without any errors! Link to comment Share on other sites More sharing options...
Kapil Bandlish1709163834 Posted July 12, 2023 Share Posted July 12, 2023 I created a temp Store and then ran the command to import the configuration, that fixed the issue. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now