How to copy a file to machines from a text file?
would able me this?
i have managed able single machine, same bunch of machines in text file.
$machines = get-content -path "c:\folder\file.txt"
foreach ($machine in $machines){copy-item -path "c:\folder\itemtocopy.txt" -destination "\\$machine\sharedfolder"}
Windows Server > Windows PowerShell
Comments
Post a Comment