Posted 13 April 2017 - 09:38 PM
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
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: (
+ FullyQualifiedErrorId : System.Management.Automation.ActionPreferenceStopException,Citrix.StoreFront.ExportConfi
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?