Skip to content

(AB-538639) Add note for destination exists to Move-Item#12914

Merged
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-538639/main/move-item-dest-exists
Apr 1, 2026
Merged

(AB-538639) Add note for destination exists to Move-Item#12914
sdwheeler merged 2 commits intoMicrosoftDocs:mainfrom
michaeltlombardi:ab-538639/main/move-item-dest-exists

Conversation

@michaeltlombardi
Copy link
Copy Markdown
Contributor

@michaeltlombardi michaeltlombardi commented Apr 1, 2026

PR Summary

This change fixes AB#538639 by noting that the cmdlet fails if the destination item already exists and directs the reader to use the -Force parameter.

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings April 1, 2026 16:57
@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

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 Move-Item reference docs to clarify behavior when the destination already exists and to direct users to -Force for overwriting.

Changes:

  • Add a note explaining the error condition when the destination item exists and suggesting -Force.
  • Update ms.date metadata for affected versions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
reference/7.6/Microsoft.PowerShell.Management/Move-Item.md Adds “destination exists” guidance and updates ms.date.
reference/7.5/Microsoft.PowerShell.Management/Move-Item.md Adds “destination exists” guidance and updates ms.date.
reference/7.4/Microsoft.PowerShell.Management/Move-Item.md Adds “destination exists” guidance and updates ms.date.
reference/5.1/Microsoft.PowerShell.Management/Move-Item.md Adds “destination exists” guidance and updates ms.date.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@learn-build-service-prod

This comment was marked as outdated.

@learn-build-service-prod

This comment was marked as outdated.

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

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@michaeltlombardi michaeltlombardi force-pushed the ab-538639/main/move-item-dest-exists branch from 702c401 to fbdebe3 Compare April 1, 2026 17:24
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit fbdebe3:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

Co-authored-by: Sean Wheeler <sean.wheeler@microsoft.com>
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit cd508c9:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Management/Move-Item.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit 40d69ff into MicrosoftDocs:main Apr 1, 2026
5 checks passed
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.

3 participants