$servers = @("server1", "server2", "server3")
$src_folder = "C:\source\"
$dst_folder = "C:\destination\"
foreach ($server in $servers) {
$credential = Get-Credential
# Copy files from source folder to destination folder
Copy-Item $src_folder -Destination "\\$server\$dst_folder" -Recurse -Credential $credential
}
Write-Host "Files deployed successfully to all servers."