Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
6 lines (4 sloc) 303 Bytes
$From = (Get-ChildItem -Path ${env:ProgramFiles}\WindowsPowerShell\Modules\x*).fullname
$To = "${env:ProgramFiles}\WindowsPowerShell\Modules"
$session = New-PSSession -ComputerName DSC -Credential zephyr\administrator
Copy-Item -Path $From -Recurse -Destination $To -ToSession $session -Verbose