How to Generate and Use a Machine Key in UiPath Orchestrator
In UiPath, the machine key is an essential piece of information that helps establish a connection between your robots and the Orchestrator. Robots can't establish a connection with the Orchestrator without a machine key; therefore, they cannot be managed or controlled. We will guide you through how to generate a machine key in UiPath Orchestrator and also how you can get the machine key from UiPath Orchestrator and use it to configure your robots in this blog.
What is a Machine Key in UiPath Orchestrator?
A machine key is a unique identifier that associates a robot with a machine in the UiPath Orchestrator environment.
It makes sure that clandestine communication is taking place between the robot and the Orchestrator, further making the robot to be operated, scheduled, and monitored from a distance.
Why Do You Need a Machine Key?
The lack of a machine key results in the failure of your robot to register with UiPath Orchestrator. You are either creating a new robot or dealing with a continuous robot, then you must get the correct machine key in order to have more effective automation work A machine key that is properly set up allows you to assign the robot to environments, start tasks, and enjoy the benefits of Orchestrator's monitoring and reporting.
How to Generate a Machine Key in UiPath Orchestrator
To find a machine key in UiPath Orchestrator, go through these steps:
Step 1: Log into UiPath Orchestrator
Open a web browser and sign in to your UiPath Orchestrator by entering the username and password.
Step 2: Navigate to the Machines Page
Once you've established a connection, choose the Tenant item from the left sidebar of the user interface (Robots> Machines). Click it to view the list of all the devices, which you already registered in the Orchestrator.

Step 3: Add a New Machine
Click the Add Machine button to create a new machine. You will then need to indicate the name of the machine and it should match the machine name registered in the control room.
Step 4: Choose the Machine Type
You will also be requested to pick the type of machine you would like to make. Often, you can be offered the choice of either a Standard Machine or a Floating Machine. Other advantages of Floating Machines are that if one robot is already using it, another robot can also share it, or if needed it can be moved to another robot.
Step 5: Generate the Machine Key
When the machine information is successfully input, click on the save from the Orchestrator menu and the system will assign automatically the minimized machine key to the new machine. This unique key will be shown on the page of the machine configuration.
How to Get the Machine Key from UiPath Orchestrator
If you have created a machine already and you would like to get the machine key from UiPath Orchestrator then carry out these steps:
Step 1: Navigate to the Machines Page
Logging in to UiPath Orchestrator as you did before, then go to the Machines tab which is under the Robots section.
Step 2: Find the Machine
Identify the machine you need the key for. This is either a device that is already set up or one you have created earlier.
Step 3: Copy the Machine Key
Click on the machine name to see the machine’s details. The machine key will show up here and you can just copy the machine key for the configuration of your bot.
How to Use the Machine Key in UiPath Studio
Once the machine key has been created by the UiPath Orchestrator, the next step is to set the configuration in the UiPath Studio in order to establish the connection between the robot and the Orchestrator.
Step 1: Open UiPath Studio
Start up the UiPath Studio on your personal computer If you have not done so already, ensure that the Robot service is installed on the computer where UiPath Studio is being used.

Step 2: Go to the Robot Settings
In UiPath Studio, click on the Robot icon in the system tray, located at the bottom-right corner of the screen, to open the Robot settings
Step 3: Configure the Machine Key
In the robot settings window, you'll be required to enter the Orchestrator URL and Machine Key
Paste the machine key you copied from UiPath Orchestrator in theMachine Keyfield
Step 4: Connect to Orchestrator
After typing in the machine key, press the Connect button If the connection is successful, your robot will be registered with the Orchestrator and you will be able to manage and schedule jobs through UiPath Orchestrator.
Troubleshooting
If you encounter problems while connecting, think about these things:
- Incorrect Machine Key: There must be no typing error or incorrect information regarding the machine key you typed in; please make sure of this first. If possible, generate another one from Orchestrator.
- Network Issues: Network connectivity issues of your PC might be the case. Be sure to have network connection. It's important to check if that allows you to access Orchestrator.
- Orchestrator URL: The Orchestrator URL is sensitive - ensure it is the one you provided and correctly, if applicable, a custom domain or on-premise.
- Robot Type: Ensure the robot is linked to and set as either the attended or unattended robot in Orchestrator, as per the use case.
Conclusion
UiPath Orchestrator's machine key is a vital component for establishing a connection between your robot and Orchestrator. By adhering to the instructions shared in this blog, you can generate the key and pull the key from Orchestrator and send it to UiPath Studio to be able to handle the robot properly.
A proper machine key solves intercommunication issues with the Orchestrator, thus, the automation workflows can be set up and run commandlessly. If, however, this is not the case and one is in need of further assistance, the official documentation and community forums of UiPath are incredibly helpful in the sense of information.
Lucille
An effort offers a chance to learn, and a result provides valuable lessons.
