Someone please help me with this interview question

These were 2 interview questions I faced.

  1. Can I run an unattended session in an attended machine?
  2. Other than “Get Outlook” activity, which activity to use for retrieving and sending emails?

hi @Navya_Thomas ,

  1. Can I run an unattended session on an attended machine?

Yes, if the machine is configured in Orchestrator for unattended use. It will run in a separate session, independent of the attended user session.

  1. Other than “Get Outlook Mail Messages”, what activities can be used for emails?

Besides Outlook activities, we can use IMAP/POP3/SMTP for generic mail servers, Exchange activities for on-prem Exchange, and modern Integration Service activities for Office 365 or Gmail, which are preferred now.

No you can’t because, attended machine will have Attended robot license allocated which can’t run a unattended job on it.

Specifically for Office 365/Microsoft 365 - Get Email and Send Mail (inside [Office 365 Scope])

I wanted to have all kinds of email management like receiving, sending and moving emails. Not specific to Office 365.

@Navya_Thomas

We have a lot of the activities actually for this. Just check the activities panel ->Mail category.

The short answer is yes, you can run an unattended session on an “attended” machine, but there is a major technical “gotcha” regarding the Windows session.

In UiPath, “Attended” and “Unattended” are primarily license types and trigger methods, not permanent physical properties of the hardware. However, how the machine behaves depends entirely on the Robot Installation Mode.

  1. The Installation Mode Hurdle

For a machine to truly act as “Unattended” (triggering from Orchestrator without you being logged in), the Robot must be installed in Service Mode .

  • Service Mode: The robot runs as a Windows service (Local System). It can “spawn” its own Windows session, log in, run the bot, and log out. This is the requirement for true unattended automation.
  • User Mode: Most “Attended” machines are installed in User Mode. In this mode, the robot only “wakes up” when a user manually logs into Windows. If you try to trigger an unattended job from Orchestrator while the machine is locked or logged out, it will fail because the User Mode robot isn’t “listening” yet.
  1. The “Interactive” Conflict

If you are sitting at your desk (Attended session) and Orchestrator triggers an Unattended job on that same machine:

  • On Windows Workstations (Windows 10/11): Only one interactive session is allowed. If the Unattended bot starts, it will either try to hijack your current session or fail because the console is in use.
  • On Windows Server: You can have multiple sessions. You could be working in Session A (Attended), while the Unattended bot logs into Session B in the background

Email Sending:

  1. The Protocol-Based Activities (The “Universal” Way)

These are standard internet protocols. They don’t require any specific email software (like Outlook or Gmail) to be installed on the machine; the bot connects directly to the mail server.

  1. Microsoft Office 365 (API-Based)

These activities use the Microsoft Graph API, which is much faster and more reliable for unattended bots than the desktop Outlook app.

  1. Exchange Server (On-Premise)

If your company uses a local Exchange server rather than the cloud (O365), there are specific activities for this.