You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/power-platform/power-automate/desktop-flows/browser-automation/web-extensions-policies.md
+35-13Lines changed: 35 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ You experience the following symptoms:
18
18
> Failed to assume control of _browser_ (Internal error or communication failure).
19
19
20
20
> [!NOTE]
21
-
> In this message, _browser_ represents the name of the web browser (for example, Microsoft Edge or Google Chrome).
21
+
> In this message, _browser_ represents the name of the web browser, such as Microsoft Edge or Google Chrome.
22
22
23
23
- During the design phase, when you open the UI element picker or the recorder and hover the mouse over a webpage, the following message is displayed:
24
24
@@ -29,10 +29,10 @@ You experience the following symptoms:
29
29
## Prerequisites
30
30
31
31
- Make sure that the Power Automate web extension is installed and enabled in your browser.
32
-
- Make sure that the correct Power Automate web extension is installed and enabled in your browser. Only one of the following extensions should be installed:
32
+
- Make sure that the correct Power Automate web extension is installed and enabled in your browser. Install only one of the following extensions:
33
33
34
-
- For Power Automate for desktop v2.27 or later versions, you need the **Microsoft Power Automate** extension.
35
-
- For Power Automate for desktop v2.26 or earlier versions, you need the **Microsoft Power Automate (Legacy)** extension.
34
+
- For Power Automate for desktop v2.27 or later versions, use the **Microsoft Power Automate** extension.
35
+
- For Power Automate for desktop v2.26 or earlier versions, use the **Microsoft Power Automate (Legacy)** extension.
36
36
37
37
For more information, see [Install Power Automate browser extensions](/power-automate/desktop-flows/install-browser-extensions).
38
38
@@ -49,11 +49,11 @@ Follow these steps:
49
49
1. Open Windows Task Manager, select the **Details** tab, and then verify that `PAD.BrowserNativeMessageHost.exe` is running.
50
50
51
51
> [!NOTE]
52
-
> One instance of this .exe file runs for each browser type.
52
+
> One instance of this process runs for each browser type.
53
53
54
54
1. If PAD.BrowserNativeMessageHost.exe isn't running, follow these steps:
55
55
56
-
1. Check whether the Power Automate web extension is installed and enabled. If it isn't installed, see the [Prerequisites](#prerequisites) section.
56
+
1. Check whether the Power Automate web extension is installed and enabled. If it's not installed, see the [Prerequisites](#prerequisites) section.
57
57
58
58
1. If the extension is installed, run the **Troubleshoot UI/Web automation issues** diagnostic in [Power Automate for desktop troubleshooter](/power-automate/desktop-flows/troubleshooter).
59
59
@@ -62,15 +62,15 @@ Follow these steps:
62
62
### Look for errors in the background script
63
63
64
64
> [!NOTE]
65
-
> This step is valid only for Microsoft Edge and Google Chrome.
65
+
> This step applies only to Microsoft Edge and Google Chrome.
66
66
67
67
Follow these steps:
68
68
69
69
1. Go to the appropriate extension page:
70
70
71
71
- Microsoft Edge: `edge://extensions/`
72
72
- Google Chrome: `chrome://extensions/`
73
-
1.Enable Developer mode.
73
+
1.Turn on Developer mode.
74
74
1. Find the Microsoft Power Automate extension.
75
75
1. Select **background.html** for the Microsoft Power Automate (Legacy) browser extension or **service worker** for the Microsoft Power Automate browser extension. This step opens the developer tools.
76
76
1. Check for any errors on the **Console** tab.
@@ -86,7 +86,7 @@ Follow these steps:
86
86
- Microsoft Edge: `edge://policy/`
87
87
- Google Chrome: `chrome://policy/`
88
88
89
-
1. Check the **NativeMessagingBlocklist** policy. If this policy is enabled for all native messaging hosts, add the Power Automate for desktop native messaging host to the **NativeMessagingAllowlist** policy:
89
+
1. Check the **NativeMessagingBlocklist** policy. If you enable this policy for all native messaging hosts, add the Power Automate for desktop native messaging host to the **NativeMessagingAllowlist** policy:
90
90
91
91
1. Open **Start**, enter _Registry Editor_, and then select **Registry Editor** in the results.
92
92
@@ -259,11 +259,33 @@ Follow these steps:
259
259
260
260
- MSIX Windows 10: `AppData\Local\Packages\Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe\TempState\webextensions\PAD.ChromiumManifest.json`
261
261
262
+
### Check whether cmd.exe execution is disabled
263
+
264
+
Power Automate for desktop relies on the browser extension to communicate with the native messaging host. If Group Policy, Intune, or registry restrictions block `cmd.exe` execution, the browser can't launch the native messaging host, and the Power Automate browser extension might fail.
265
+
266
+
Restoring access to `cmd.exe` ensures that the browser can correctly launch the native messaging host that's required by the Power Automate browser extension. To re-enable `cmd.exe`, use one of the following methods.
267
+
268
+
#### Re-enable cmd.exe by using Group Policy
269
+
270
+
1. Press <kbd>Win</kbd>+<kbd>R</kbd>, enter `gpedit.msc`, and then press <kbd>Enter</kbd>.
271
+
1. Go to **User Configuration** > **Administrative Templates** > **System**.
272
+
1. Open **Prevent access to the command prompt**.
273
+
1. Set the policy to **Disabled** or **Not configured**.
274
+
1. Select **OK** to save the changes.
275
+
276
+
#### Re-enable cmd.exe by using Registry Editor
277
+
278
+
1. Open **Start**, search for and select **Registry Editor**.
279
+
1. Go to `HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System`.
280
+
1. Find the `DisableCMD` value, and then do one of the following:
281
+
- Set the value to `0`.
282
+
- Delete the value.
283
+
262
284
### Check for the ComSpec variable
263
285
264
286
Check whether the `ComSpec` variable exists in **Environment variable** under **System variables**. If it doesn't exist, add it, and then try again:
265
287
266
-
1. Select **Start**, search on **Environment variables**, and then select **Edit the system environment variables** in the search results.
288
+
1. Select **Start**, search for **Environment variables**, and then select **Edit the system environment variables** in the search results.
267
289
1. Select **Environment variables**.
268
290
269
291
> [!NOTE]
@@ -282,17 +304,17 @@ If more than one browser profile exists:
282
304
283
305
Follow these steps:
284
306
285
-
1. Open **Start**, search on **Event Viewer**, and then select **Event Viewer** in the search results.
307
+
1. Open **Start**, search for **Event Viewer**, and then select **Event Viewer** in the search results.
286
308
1. In the left pane, expand **Event Viewer (Local)** > **Windows Logs** > **Application**.
287
309
1. Locate the error entries that are related to Power Automate for desktop.
288
310
289
311
### Disable other web extensions
290
312
291
-
Try disabling all other web extensions except the Power Automate extension to see whether the issue persists.
313
+
Try disabling all other web extensions except the Power Automate extension to see if the problem continues.
292
314
293
315
### Disable browser background settings
294
316
295
-
Some browser settings can interfere with the Power Automate extension. To resolve this issue, disable the following settings in your browser:
317
+
Some browser settings can interfere with the Power Automate extension. To resolve this problem, disable the following settings in your browser:
296
318
297
319
1. Open Microsoft Edge or Google Chrome.
298
320
1. Go to **Settings** > **System and performance**.
0 commit comments