Unattended bot on a virtual machine

Hi @fzhang

To check if bot was installed in Service Mode you can run the script below in powershell as mentioned here

After installation how to check if Robot in Service Mode or User Mode - Help / Studio - UiPath Community Forum

$servicename = "UiRobotSvc"
if (Get-Service $servicename -ErrorAction SilentlyContinue)
{
Write-Host "$servicename service exists -> That means the robot is installed in Service Mode (Unattended Robot)."
Get-CimInstance -ClassName Win32_Service | Where-Object Name -eq 'UiRobotSvc' | Format-Table -Property ProcessId,Name,DisplayName,StartMode,State,Status  -AutoSize -Wrap
}
Else {
Write-Host "$servicename not found -> That means the robot is installed in User Mode (Attended robot) or not installed at all."
}

Also if you are running the bot and log in into that VM use the same robot account then sign out, the session will be terminate and the bot will throw error