How To Copy Files To Windows Nano Server 2016

In this article I’ll show you the two method that enable us to copy files from and to a Windows Nano Server 2016.

The first option below Is done using PowerShell 5 and Remote Session as seen below.

In the example below I’m creating a PowerShell Remote Session and use copy Item to the session host name.

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

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

The other option Is to use the UNC path of the Nano Server and Simply copy the files.

Note: To use this option you will need to disable the Firewall on the Nano Server below or open the port.

\\NanoServerHostOrIP\C$

For more Nano Server articles visit our Nano Server 2016 Main page.


Posted

in

by