carpeta de copia de PowerShell a una computadora remota
Start-Transcript -path 'c:\scriptlog.txt'
$ServerList = import-csv 'C:\powershell\Workstation-test.CSV'
$SourceFileLocation = 'C:\Niche'
$Destination = 'C$\Niche'
foreach ($_ in $ServerList.computer){
remove-item "\\$_\$Destination" -Recurse -Force -Verbose
Copy-Item $SourceFileLocation -Destination "\\$_\$Destination" -Recurse -Verbose
}
Stop-Transcript
Energetic Elephant