How to generate licence file offline and upload it to Orchestrator

How to generate licence file offline and upload it to Orchestrator?

1. In any robot machine open command prompt in admin mode.

2. cd C:\Program Files (x86)\UiPath\Studio\UiPath

3. regutil.exe get-activation-cert /email=your.email@domain.com /code=12345678909 /out_file=C:\certificate.txt

4. Copy the content of C:\certificate.txt and activate it in the portal : http://www.activationportal.me/selfservice/activation.aspx?cid=6080&pid=4283&Type=1&Lang=en-US 

5. Copy the generated text into C:\response.txt

6. In the command prompt run the below command : 

regutil.exe activate /offline /code=12345678909 /response_file=C:\response.txt

7. In the command prompt run the below command : 

regutil.exe export-info /out_file=C:\orchestrator.license

8. Upload the C:\orchestrator.license to Orchestrator.