If it fails (as it did for me) open a command console
Change directory to the following path: C:\Program Files (x86)\Citrix\Independent Management Architecture
Type the following command: dsmaint config /user:domain\administrator /pwd:yourpassword /dsn:”c:\Program Files (x86)\Citrix\Independent Management Architecture\mf20.dsn”
For the password use your local administrator account password
You will see the following output:Attempting to connect to the data store with new configuration settings.
Successfully connected to the data store.
Configuration successfully changed.
Please restart the IMA Service for changes to take effect.
Open Services in Admin Tools and stop the Citrix Independent Management Architecture
Using the same command console type the following command: dsmaint recreatelhc
Now restart the Citrix Independent Management Architecture service
Try the discovery process again and it should work!