When I run the script, I can skriva a special folder name.we will write a special folder name: for example testfolder2. then check if the folder(testfolder2) exist in path:d:\dokument\test\2017.then if there is in path so to copy it, if there is not , it says there is no folder. then copy this folder to 10 server!
$foldername = Read-Host "Enter folder to check"
{Copy-Item $Source -Destination "\\$Server\$Destination" -Recurse}
Aucun commentaire:
Enregistrer un commentaire