Reset a server to factory defaults
In some situations, there is a need to reset a StoreFront installation to its initial installation state. This is necessary, for example, before you can re-add a StoreFront server to a server group.
A manual uninstall and reinstall can be performed, but this is more time consuming and may cause other unforeseen issues. Instead you can run the Clear-STFDeployment PowerShell cmdlet to reset a StoreFront server to a factory default state.
- Ensure that the StoreFront management console is closed.
- Open the PowerShell ISE and select Run as Administrator.
-
Set the PowerShell path:
$env:PSModulePath = [Environment]::GetEnvironmentVariable('PSModulePath','Machine') <!--NeedCopy-->
-
Import the Citrix StoreFront module.
Import-Module citrix.storefront -verbose <!--NeedCopy-->
-
After the module is imported, run the Clear-STFDeployment command to reset the StoreFront server to the default settings:
Clear-STFDeployment -Confirm $False <!--NeedCopy-->
-
When the command has completed successfully, open the StoreFront management console and confirm that all settings are reset. The options to Create a new deployment or Join existing server group are available.