Copy Files To A Nano Server Using Remote PowerShell 5

In this article I’ll show how to copy files to a Nano Server using PowerShell Remoting.

This Is a very handy feature when connecting and Interacting with Nano Servers and Windows Servers Core.

To get started I’ll create a Session variable with remote Server:

$session = New-PSSession -ComputerName 192.168.0.21 -Credential administrator

Next I will run the Copy-Item cmdlet:

Copy-Item C:\VMs\NanoServer\* -Destination c:\files\Nano -recurse -ToSession $session -Verbose

As shown below files are being copied across

Done


Posted

in

by