Would you like to learn how to access a shared folder using the command-line on a computer running Windows? In this tutorial, we are going to show you how to access a network share using the command-line on a computer running Windows.

• Windows 2012 R2
• Windows 2016
• Windows 2019
• Windows 10
• Windows 7

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Windows Related Tutorial:

On this page, we offer quick access to a list of tutorials related to Windows.

Tutorial Windows - Access a shared folder using the command-line

Start a new command-line prompt.

Windows - Command-line prompt

List the shared folders on a remote computer.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Access a shared folder using the command-line.

Copy to Clipboard

List the remote files available on the network share.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Unmount the remote network drive.

Copy to Clipboard

In our example, we accessed a shared folder using the command-line.

Optionally, mount a remote share as a local drive.

Copy to Clipboard

List the remote files available on the network share.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Unmount the remote network drive.

Copy to Clipboard

In our example, the remote share was mounted as the local unit Z.

Congratulations! You are able to access remote shares using the command-line.