PowerShell Copiar pasta para o computador remoto
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