Displaying 1 result from an estimated 1 matches for "z_testfiles".
Did you mean:
testfiles
2023 Mar 01
1
Inherit Owner / Permissions
A user is attempting to use Windows Powershell get-childitem command to
copy files from one SMB directory to another.
*****************
Get-ChildItem -Path "W:\z_TestFiles\source1" -Recurse -File |
ForEach-Object {
Copy-Item -Path $_.FullName -Destination "X:\dest1"
}
*****************
When the command is run it creates the files as 0 byte files and then
errors.
*****************
Copy-Item : Element not found.
At line:2 char:5
+ Copy-Item -Pa...