Copy file to multiple remote server using powershell

Copy file to multiple server

 

Share your folder where you have files. if you have multiple files or folder then you zip them. 

       Who ever Admin performing this operation or activity should have access on both source and target to copy and pate the files from a Network share folder. 


$servers = Get-Content 'c:\temp\file.txt'

Invoke-Command -ComputerName $servers -ScriptBlock

{

Copy-Item -Path '\\servername\folder\file.zip' -Destination "c:\\temp" -Verbose

}


2 comments

You cannot reply to comments if the comment location is not embedded

  1. August 8, 2023 at 8:32 AM
    yurtdışı kargo
    resimli magnet
    instagram takipçi satın al
    yurtdışı kargo
    sms onay
    dijital kartvizit
    dijital kartvizit
    https://nobetci-eczane.org/
    İE15H
  2. October 2, 2023 at 10:11 AM
    شركة رش حشرات بالاحساء
    شركة رش حشرات