Skip to content

Commit a1c718b

Browse files
authored
Merge pull request #10666 from MicrosoftDocs/NikosMoutzourakis-Browser-cmd-20260204
Add cmd.exe execution check for PAD browser extension
2 parents 52cc0f2 + c53913b commit a1c718b

1 file changed

Lines changed: 35 additions & 13 deletions

File tree

support/power-platform/power-automate/desktop-flows/browser-automation/web-extensions-policies.md

Lines changed: 35 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You experience the following symptoms:
1818
> Failed to assume control of _browser_ (Internal error or communication failure).
1919
2020
> [!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.
2222
2323
- 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:
2424

@@ -29,10 +29,10 @@ You experience the following symptoms:
2929
## Prerequisites
3030

3131
- 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:
3333

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.
3636

3737
For more information, see [Install Power Automate browser extensions](/power-automate/desktop-flows/install-browser-extensions).
3838

@@ -49,11 +49,11 @@ Follow these steps:
4949
1. Open Windows Task Manager, select the **Details** tab, and then verify that `PAD.BrowserNativeMessageHost.exe` is running.
5050

5151
> [!NOTE]
52-
> One instance of this .exe file runs for each browser type.
52+
> One instance of this process runs for each browser type.
5353
5454
1. If PAD.BrowserNativeMessageHost.exe isn't running, follow these steps:
5555

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.
5757

5858
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).
5959

@@ -62,15 +62,15 @@ Follow these steps:
6262
### Look for errors in the background script
6363

6464
> [!NOTE]
65-
> This step is valid only for Microsoft Edge and Google Chrome.
65+
> This step applies only to Microsoft Edge and Google Chrome.
6666
6767
Follow these steps:
6868

6969
1. Go to the appropriate extension page:
7070

7171
- Microsoft Edge: `edge://extensions/`
7272
- Google Chrome: `chrome://extensions/`
73-
1. Enable Developer mode.
73+
1. Turn on Developer mode.
7474
1. Find the Microsoft Power Automate extension.
7575
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.
7676
1. Check for any errors on the **Console** tab.
@@ -86,7 +86,7 @@ Follow these steps:
8686
- Microsoft Edge: `edge://policy/`
8787
- Google Chrome: `chrome://policy/`
8888

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:
9090

9191
1. Open **Start**, enter _Registry Editor_, and then select **Registry Editor** in the results.
9292

@@ -259,11 +259,33 @@ Follow these steps:
259259

260260
- MSIX Windows 10: `AppData\Local\Packages\Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe\TempState\webextensions\PAD.ChromiumManifest.json`
261261

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+
262284
### Check for the ComSpec variable
263285

264286
Check whether the `ComSpec` variable exists in **Environment variable** under **System variables**. If it doesn't exist, add it, and then try again:
265287

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.
267289
1. Select **Environment variables**.
268290

269291
> [!NOTE]
@@ -282,17 +304,17 @@ If more than one browser profile exists:
282304

283305
Follow these steps:
284306

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.
286308
1. In the left pane, expand **Event Viewer (Local)** > **Windows Logs** > **Application**.
287309
1. Locate the error entries that are related to Power Automate for desktop.
288310

289311
### Disable other web extensions
290312

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.
292314

293315
### Disable browser background settings
294316

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:
296318

297319
1. Open Microsoft Edge or Google Chrome.
298320
1. Go to **Settings** > **System and performance**.

0 commit comments

Comments
 (0)