Skip to content

Commit c8b4b74

Browse files
authored
minor updates
1 parent 4c0c4f1 commit c8b4b74

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

support/power-platform/power-automate/desktop-flows/failed-to-run-powershell-script-error.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Solves an error that occurs when you run the Run PowerShell script
44
ms.author: iomavrid
55
author: yiannismavridis
66
ms.custom: sap:Desktop flows
7-
ms.date: 04/15/2025
7+
ms.date: 04/16/2025
88
---
99
# "Failed to run PowerShell script" error when running the Run PowerShell script action
1010

@@ -48,14 +48,14 @@ To resolve this issue, follow these steps to update the **Path** environment var
4848

4949
1. Under the **System variables** section, locate and select the **Path** variable, then select **Edit**.
5050

51-
1. Add the directory path of `powershell.exe` to the list of paths. In most cases, the missing path is:
51+
1. Add the directory path of `powershell.exe` to the list of paths.
5252

53-
**C:\WINDOWS\System32\WindowsPowerShell\v1.0\\**
53+
In most cases, the missing path is: **C:\WINDOWS\System32\WindowsPowerShell\v1.0\\**
5454

55-
1. To confirm the correct path, open a PowerShell terminal and run the following command:
55+
To confirm the correct path, open a PowerShell terminal and run the following command:
5656

5757
`$PsHome`
5858

59-
Use the displayed path as the value to add to the **Path** variable if it differs.
59+
Use the displayed path as the value to add to the **Path** variable.
6060

6161
1. Select **OK** to save changes and close all dialogs.

support/power-platform/power-automate/desktop-flows/take-screenshot-action-fails-in-unattended-mode.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Resolves an error that occurs in the action 'Take screenshot', when
44
ms.author: iomavrid
55
author: yiannismavridis
66
ms.custom: sap:Desktop flows\Unattended flow runtime errors
7-
ms.date: 04/15/2025
7+
ms.date: 04/16/2025
88
---
99
# Unattended desktop flow run fails with the "Failed to take screenshot" error
1010

@@ -30,9 +30,15 @@ The issue occurs due to a specific security policy that impacts how a User Accou
3030

3131
## Resolution 1: Locate and allow binaries except for non-Windows ones to run without elevation prompt
3232

33-
Configure the [User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode](/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/user-account-control-behavior-of-the-elevation-prompt-for-administrators-in-admin-approval-mode) security policy setting.
33+
To solve this issue,
3434

35-
:::image type="content" source="media/take-screenshot-action-fails-in-unattended-mode/local-security-policy.png" alt-text="Screenshot of the User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode setting in the Local Security Policy window." lightbox="media/take-screenshot-action-fails-in-unattended-mode/local-security-policy.png":::
35+
1. In Local Group Policy Editor, go to **Computer Configuration** > **Windows Settings** > **Security Settings** > **Local Policies** > **Security Options**.
36+
1. Locate the **User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode** security policy setting.
37+
1. Set the value to **Prompt for consent for non-Windows binaries**.
38+
39+
:::image type="content" source="media/take-screenshot-action-fails-in-unattended-mode/local-security-policy.png" alt-text="Screenshot of the User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode setting in the Local Security Policy window." lightbox="media/take-screenshot-action-fails-in-unattended-mode/local-security-policy.png":::
40+
41+
For more information about the best practices, location, values, policy management and security considerations for the security policy setting, see [User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode](/previous-versions/windows/it-pro/windows-10/security/threat-protection/security-policy-settings/user-account-control-behavior-of-the-elevation-prompt-for-administrators-in-admin-approval-mode).
3642

3743
## Resolution 2: Change the registry key below
3844

0 commit comments

Comments
 (0)