Run desktop flows in Picture-in-Picture (preview)

[This topic is prerelease documentation and is subject to change.]

Power Automate enables you to run attended desktop flows within a virtual window that replicates your desktop, so that you can continue working on your machine while the automation is running in parallel.

This attended run mode is called Picture-in-Picture and uses the Child Sessions technology.

Important

  • This is a preview feature.
  • Preview features aren’t meant for production use and may have restricted functionality.
  • These features are available before an official release so that customers can get early access and provide feedback.

Prerequisites

  • Power Automate for desktop needs to be installed on the machine.

  • The user must be signed in to use Power Automate.

  • The user needs a Power Automate Premium plan or access to a pay-as-you-go environment.

  • The user running flows in Picture-in-Picture should be part of the following Windows policies:

    • Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Allow Log On Locally
    • Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Access this computer from the network
  • A device that runs Windows 10 (Pro or Enterprise), Windows 11 (Pro or Enterprise), Windows Server 2016, Windows Server 2019, or Windows Server 2022.

Enable Picture-in-Picture on the machine

To enable the Picture-in-Picture run mode on the machine, follow one of the methods described here.

Important

Administrator rights on the local machine are required for all methods.

Method Description
Manually Run a desktop flow in Picture-in-Picture mode on the machine. You'll be asked to enable the feature.
MSI installer Install Power Automate with the MSI installer and select the Enable Picture-in-Picture mode option during the installation process.
Silent installation Install Power Automate with silent installation. During silent installation, Picture-in-Picture is enabled by default on the machine. To skip the enablement, add the -SKIPENABLEPIPMODE argument. More information: Command line arguments
Command Update an existing installation and enable or disable the Picture-in-Picture run mode on the machine with a command. Open the Start menu, search for Command Prompt, right-click it, and then select Run as administrator. Go to the installation directory of Power Automate, by default cd C:\Program Files (x86)\Power Automate Desktop and run the command PAD.ChildSession.Installer.Host.exe to enable Picture-in-Picture or PAD.ChildSession.Installer.Host.exe -d to disable it.

Run a desktop flow in Picture-in-Picture

You can trigger a desktop flow in Picture-in-Picture mode through the Power Automate console.

Select the target flow, open the More actions menu, and then select Run in Picture-in-Picture.

Run in Picture-in-Picture through the Power Automate console.

Alternatively, enable the Run in Picture-in-Picture flow property so that the flow always runs in Picture-in-Picture mode when triggered locally.

Enable the Picture-in-Picture flow property.

Set flow property and run in Picture-in-Picture through the Power Automate console.

When you authenticate on the Picture-in-Picture session, the flow starts running within the Picture-in-Picture window.

The flow is running in the Picture-in-Picture window.

Enable options View only to block user input, and Always on top to always keep the window on the foreground.

Debug a desktop flow in Picture-in-Picture

You can debug a desktop flow in a Picture-in-Picture session directly through the Power Automate flow designer.

To enable the Picture-in-Picture run mode in the designer, select Debug > Enable Picture-in-Picture mode.

Enable the Picture-in-Picture mode in the Power Automate designer.

Limitations of Browser automation in Picture-in-Picture

Two instances of a web browser (Chrome, Firefox, or Microsoft Edge) can't open concurrently with the same user data folder in both main and Picture-in-Picture sessions.

If a web browser is already open on the desktop with a user data folder, then it opens in Picture-in-Picture with another user data folder, and vice versa.

This limitation is handled automatically with the User data folder parameter in the launch browser actions in the Power Automate designer. More information: Launch new Microsoft Edge

The User data folder parameter has the following options:

  • Picture-in-Picture default (default option)
  • Browser default
  • Custom

When set to Picture-in-Picture default, Power Automate creates a new user data folder for the browser to use when the flow runs in Picture-in-Picture mode.

Important

For browser automation to work successfully, use a launch browser action to open your web browser within the Picture-in-Picture window and enable the Power Automate browser extension on the Picture-in-Picture user data folder.

If it's set to Browser default, the browser within the Picture-in-Picture session uses the default user data folder, which is the same as the one used when the flow runs in the main session.

Important

  • When User data folder is set to Browser default, the web browser can only open in one session at a time.
  • When it's set to Custom, you can enter a custom user data folder to be used by the browser in Picture-in-Picture flow runs.

Known issues and limitations

  • If you're using a PIN to sign in to Windows, PIN authentication only works the first time the Picture-in-Picture session is opened. After that, it can only be authenticated with username and password.
  • Applications that start on Windows startup are automatically opened within the Picture-in-Picture session as well. This might cause a conflict between the two sessions, as two instances of an application are running concurrently. To avoid this, don't set the applications to start automatically on Windows startup. To resolve this, it might be required to sign out and sign in again or restart the machine.
  • Windows Home editions aren't supported.
  • The machine can't be restarted or shut down while the Picture-in-Picture session is open.
  • The clipboard is shared between the Picture-in-Picture session and the main session.
  • With Windows Server, if multiple users are connected concurrently to the server, only one Picture-in-Picture session can be opened at a time.
  • The default timeout to start a process in a Picture-in-Picture is 120 seconds. If the sign in takes longer than that, a timeout error is thrown.
  • Picture-in-Picture asks for credentials every time it starts in case the following Windows policy is set to Disabled:
    • Local Group Policy\Computer Configuration\Administrative Templates\System\Credential Delegation\Allow delegating default credentials
  • If smartcard is used to sign in to Windows, the following policy should be set to Not Configured or Disabled:
    • Computer Configuration\Administrative Templates\Windows Components\Remote Desktop Services\Remote Desktop Session Host\Device and Resource Redirection\Do not allow smart card device redirection