Skip to content

Improve Group Policy installer error details#27300

Open
badgerbees wants to merge 1 commit into
PowerShell:masterfrom
badgerbees:fix/group-policy-error-details
Open

Improve Group Policy installer error details#27300
badgerbees wants to merge 1 commit into
PowerShell:masterfrom
badgerbees:fix/group-policy-error-details

Conversation

@badgerbees
Copy link
Copy Markdown

PR Summary

This updates InstallPSCorePolicyDefinitions.ps1 so the ADMX and ADML install failure messages include the destination path they were trying to write to. The behavior is unchanged; the terminal output is just more actionable when the copy verification fails.

PR Context

The existing failure messages only say that the files could not be installed, which leaves out the target path and makes troubleshooting harder. This change adds the missing diagnostic detail without changing the install flow. I verified the updated error text by running a sandboxed copy of the script and forcing the failure path.

PR Checklist

Copilot AI review requested due to automatic review settings April 19, 2026 13:50
@badgerbees badgerbees requested a review from a team as a code owner April 19, 2026 13:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Group Policy installer script to emit more actionable error messages when ADMX/ADML copy verification fails, by including the destination path in the failure text.

Changes:

  • Include $admxTargetFullPath in the ADMX install failure message.
  • Include $admlTargetFullPath in the ADML install failure message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants