In some cases, whether as a troubleshooting measure or because of changes to the Windows domain, you need to have your ProxySG appliance leave the Windows domain and then rejoin it.
Here are the steps to leave and rejoin the domain:
To manually remove all Visual Policy Manager (VPM) rules and policies that apply to the realm you want to remove:
Note: When following 1.b for removing affected rules and policies, you must respect the format of the XML file. If you do not respect the format then when re-importing the backup and opening the VPM it will not open up with the policies. In notepad++, for example, is how to save correctly the policy files. Set the encoding as xml extension
Once completed you can now open the XML document with the normal notepad and now it respects the format of the XML
To delete the realms:
NOTE: Proxy may need to be rebooted to clear any association to realm in question in the memory.
To leave the domain:
Note: If the Leave button is grayed out, refer to the following Knowledge Base article: Cannot leave Windows domain in the Management Console
To refresh the Management Console, press the F5 key.
To rejoin the domain, refer to the Knowledge Base article: How do I configure the ProxySG appliance to connect directly to Active Directory for IWA authentication?
To reapply the policies: