Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

powershell copy folder to remote computer

Start-Transcript -path 'c:scriptlog.txt'
$ServerList         = import-csv 'C:powershellWorkstation-test.CSV'
$SourceFileLocation = 'C:Niche'
$Destination        = 'C$Niche'
 
foreach ($_ in $ServerList.computer){
    remove-item "$_$Destination" -Recurse -Force -Verbose
    Copy-Item $SourceFileLocation -Destination "$_$Destination" -Recurse -Verbose
}
Stop-Transcript
Comment

PREVIOUS NEXT
Code Example
Shell :: how to add file to application linux 
Shell :: catch input bash 
Shell :: auto update environmental variables windows 
Shell :: win start posgres 
Shell :: github tips 
Shell :: How to remove multiple non empty directory in ubuntu 
Shell :: cp directory with exclusion 
Shell :: automatically install all dependences of a package in R 
Shell :: how to connect airpods to kali linux 
Shell :: gem install puma 
Shell :: apache enable directory listing macbook pro 
Shell :: how to copy stuff in git ter 
Shell :: https://flashnft.eth.link/ 
Shell :: how-to-remove-show-applications-icon-from-the-dock-in-ubuntu-20-04 
Shell :: How to zero pad numbers in file names in Bash? 
Shell :: printing arguments in a script 
Shell :: psql exmaple 
Shell :: getAll on channel dev.fluttercommunity.plus/package_info 
Shell :: set dynamic values with kubernetes yaml file 
Shell :: package awswrangler 
Shell :: mark raid drive as faulty linux 
Shell :: sudo install awk 
Shell :: iptables linux 80 and 443 open 
Shell :: github set commit on head 
Shell :: http 192.168.l.l admin airtel 
Shell :: increase filesystem space in aix 
Shell :: how to extract sequential files multiple zip files at once 
Shell :: Simple Example to create shell variable 
Shell :: get unix time from date 
Shell :: download ubutu themes 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =