Windows 11 Powershell 5.1.22621.963 Copy-Item error

  • Thread starter Thread starter Ankit Raj1996
  • Start date Start date
A

Ankit Raj1996

I am trying to copy a file from one location to other , and the command looks like this Copy-Item "C:\Program Files\Test\App\resources\app\default\common_functions.ps1" -Destination "C:\chef\test\setup"and every time its giving the following errorCopy-Item : The parameter is incorrect. At line:1 char:1 + Copy-Item "C:\Program Files\Test\App\resources\app\default\common ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Copy-Item], IOException + FullyQualifiedErrorId : System.IO.IOException,Microsoft.PowerShell.Comman

Continue reading...
 
Back
Top