79677841

Date: 2025-06-24 15:35:56
Score: 1
Natty:
Report link

For some reason, no errors are generated when using wild cards in the path of Copy-Item (as @mklement0 states in the comments). Using the Filter param instead should bypass this behavior.

Copy-Item "$UpdateSourceFolder\" -Filter * "$UpdateDestinationFolder" `
  -Recurse -ErrorAction Stop

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mklement0
Posted by: Dennis