Sunday, March 22, 2015

PowerShell: Copy Files in List of remote servers /clients



###############fyzel Salih 2015 March###############3
Get-Credential
$server_names = gc (Read-Host " Show me the Server List")
$S= Read-Host "Maan,what do You wanna copy Today"
Foreach ($server in $server_names){copy-Item $S -Destination "\\$server\c$" -Recurse

}
###############fyzel Salih 2015 March###############

No comments: