Can you please help me where to add credentials (all windows servers have same credentials) in this script to puch scripts
Point the script to a text file with a list of computers
$Computers = "C:\File Copy\Source Server\ComputerList.txt"
Sets the variable for the source file location
$Source = "C:\File Copy\prod.csv"
Sets the variable for the file destination
$Destination = "File copy\Servers"
Get the content of $computers and copy Source to Destination
Get-Content $Computers | ForEach-Object {Copy-Item $Source -Destination (Join-Path "\\$_\c`$\" $Destination)
Apologies in advance i am not an expert on powershell so dont know much can you explain a bit