I find myself very often copying files between servers, specfically the CUs, so I wanted a faster way of doing that. This script will copy the files from c:\source to the UNC of another front end server in a pool, in this example the folder is c:\source\Lync2013CU2809243
get-csservice -Registrar | %{Get-CsComputer -pool $_.PoolFqdn | %{new-item -Name Source -ItemType Directory -Path “\\$($_.fqdn)\c$” -whatif;copy-item -Path C:\source\Lync2013CU2809243 -Destination “\\$($_.fqdn)\c$\Source” -Recurse -whatif }}
52 thoughts on “”