Sharing files and printers


Introduction

This tutorial is designed to help you set up file and printer sharing on a network that has PCs running different Windows operating systems. Because the instructions can vary, open this tutorial on each PC so that you see the correct instructions, or use the selector at right to choose an operating system.

To move through this tutorial, click each step in the left pane or click Next below, completing each step before moving on.

Note

Note

  • If all the PCs on your network are running Windows 7, Windows 8, or Windows RT, we recommend creating a homegroup instead of using this tutorial. It gives you a much easier way to share files and printers on a home network. For a step-by-step tutorial on creating and using a homegroup, see HomeGroup from start to finish.

Prepare your PCs that are running Windows 8 or Windows RT

Follow these steps on each of your PCs running Windows 8 or Windows RT.

Change the workgroup name, if needed

Note

Note

  • If you don't have any PCs running Windows XP on your network, you can skip this step.

If your network includes PCs running Windows XP, it’s important to use the same workgroup name for all of the PCs on your network. This makes it possible for PCs running different Windows operating systems to detect and access each other. Remember that the default workgroup name is not the same in all Windows operating systems.

  1. Open System by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering System in the search box, tapping or clicking Settings, and then tapping or clicking System.

  2. Under Computer name, domain, and workgroup settings, tap or click Change settings. Administrator permission required You might be asked for an admin password or to confirm your choice.

  3. In the System Properties dialog box, tap or click the Computer Name tab, and then tap or click Change.

  4. In the Computer Name/Domain Changes dialog box, under Member of, tap or click Workgroup, and then do one of the following:

    • To join an existing workgroup, enter the name of the workgroup that you want to join, and then tap or click OK.

    • To create a new workgroup, enter the name of the workgroup that you want to create, and then tap or click OK.

    If your PC was a member of a domain before you joined the workgroup, it will be removed from the domain and your PC account on that domain will be disabled.

Turn on network sharing

The first time you connect to a network, you'll be asked if you want to turn on sharing between PCs and connect to network devices such as printers. Your answer automatically sets the appropriate firewall and security settings for the type of network that you connected to. You can turn sharing on or off anytime.

  1. View a list of available networks by swiping in from the right edge of the screen, tapping Settings (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Settings), and then tapping or clicking the network icon (The wireless network icon or The wired network icon).
  2. Press and hold or right-click the network you're connected to, and then tap or click Turn sharing on or off.

  3. Choose Yes, turn on sharing and connect to devices for home or small office networks, or when you know and trust the people and devices on the network. This setting allows your PC to connect to devices on the network, such as printers.

Note

Note

  • The network sharing setting is only available for Wi‑Fi, Ethernet, VPN (non-domain), and dial-up (non-domain) connections. It's unavailable for domain networks. On VPN or dial-up connections, you must connect to the network first, then press and hold or right-click the network name to change the network sharing setting.

Make sure your firewall allows file and printer sharing

If you're using Windows Firewall, you can skip this step, because Windows Firewall automatically uses the correct settings for file and printer sharing when you share something or turn on network sharing. If you're not using Windows Firewall, expand the "Firewall ports" section below and open the listed ports on your firewall, or contact your firewall manufacturer for assistance.

Firewall ports

To find other PCs running Windows Vista, Windows 7, Windows 8, or Windows RT, open these ports:

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

To find other PCs running earlier Windows operating systems, and to use file and printer sharing on any Windows operating system, open these ports:

  • UDP 137

  • UDP 138

  • TCP 139

  • TCP 445

  • UDP 5355

To find network devices, open these ports:

  • UDP 1900

  • TCP 2869

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

If you also have a homegroup on your network, open the following additional ports:

  • UDP 137

  • UDP 138

  • TCP 139

  • TCP 445

  • UDP 1900

  • TCP 2869

  • UDP 3540

  • TCP 3587

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

Share files and printers

You can use the Share tab in File Explorer to share files and folders on your network (homegroup, workgroup, or domain) or on a PC that you share with other people.

Tip

Tip

  • If you want to share files and folders with everyone who has a user account and password on your PC, you can just put the items you want to share in the Public folders. For info about using the Public folders, see Public folders: Frequently asked questions.

Share using the Share tab in File Explorer

  1. Open File Explorer by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering File Explorer in the search box, tapping or clicking Apps, and then tapping or clicking File Explorer.

  2. Select the item, and then tap or click the Share tab.

  3. Choose an option in the Share with group. There are different Share with options depending on whether your PC is connected to a network and what kind of network it is.

    • To share items with a particular person, choose that person's account.

    • To share with all the members of your homegroup, choose one of the Homegroup options. To select libraries to share with all the members of your homegroup, swipe in from the right edge of the screen, tap Settings, and then tap Change PC settings. (If you're using a mouse, point to the upper-right corner of the screen, move the mouse pointer down, click Settings, and then click Change PC settings.) Then tap or click HomeGroup.

    • If you need to share a location such as a drive or system folder, use the Advanced sharing option.

Find shared items on a network

To see the files, folders, and libraries that have been shared on your network, open File Explorer.

  • Open File Explorer by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering File Explorer in the search box, tapping or clicking Apps, and then tapping or clicking File Explorer.

The location where the shared items appear depends on the type of network you have, and which Windows operating system is running on the PC you're using to find the shared files or folders.

From a PC runningOn this type of networkShared items appear under

Windows 8 or Windows 7

Homegroup

Homegroup

Windows 8, Windows 7, or Windows Vista

Workgroup or domain

Network

Windows XP

Workgroup

My Network Places

If you can’t see items on a network that are supposed to be shared with you, ask the person who’s sharing them for the path (it should begin with \\computername\). Enter this path in the address bar in File Explorer.

If the items you've shared don't appear under Network, you can customize your view of folders in File Explorer to see which items have been shared and the people you're sharing them with. Open a folder that contains the items that you think are shared. On the View tab, in the Layout group, tap or click Details. Tap or click Add columns, and then choose Choose columns. Select Shared and Shared with, and then tap or click OK.

Find items shared on the same PC

If your PC isn't part of a homegroup or network and other people have shared something in their personal folder, you can browse to the shared item in File Explorer.

  1. Open Computer by swiping in from the right edge of the screen, tapping Search (or if you're using a mouse, pointing to the upper-right corner of the screen, moving the mouse pointer down, and then clicking Search), entering Computer in the search box, tapping or clicking Apps, and then tapping or clicking Computer.

  2. Tap or click Local Disk.

  3. Open Users, and then open the folder with the person’s name.

Troubleshooting

If you have problems sharing files and printers on your network, see Share files and folders on a network or a shared PC for more info.

Introduction

This tutorial is designed to help you set up file and printer sharing on a network that has PCs running different Windows operating systems. Because the instructions can vary, open this tutorial on each PC so that you see the correct instructions, or use the selector at right to choose an operating system.

To move through this tutorial, click each step in the left pane or click Next below, completing each step before moving on.

Note

Note

  • If all the PCs on your network are running Windows 7, Windows 8, or Windows RT, we recommend creating a homegroup instead of using this tutorial. It gives you a much easier way to share files and printers on a home network. For a step-by-step tutorial on creating and using a homegroup, see HomeGroup from start to finish.

Prepare your PCs that are running Windows 7

Follow these steps on each of your PCs running Windows 7.

Change the workgroup name, if needed

Note

Note

  • If you don't have any PCs running Windows XP, you can skip this step.

If your network includes PCs running Windows XP, it’s important to use the same workgroup name for all of the PCs on your network. This makes it possible for PCs running different Windows operating systems to detect and access each other. Remember that the default workgroup name is not the same in all Windows operating systems.

  1. Open System by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, and then clicking System. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
  2. The workgroup name is displayed under Computer name, domain, and workgroup settings.

  3. If you need to change the workgroup name, click Change settings. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

  4. On the System Properties dialog box, click Change, and then, under Member of, select Workgroup and type the new workgroup name.

  5. Click OK three times, click Close, and then click Restart Now to restart your computer.

Set the network location to Home or Work

Next, check the network location and make sure it's set to Home (for a home network) or Work (for a work network). This automatically turns on network discovery and adjusts other security settings.

  1. Open Network and Sharing Center by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type network, and then click Network and Sharing Center.
  2. The network location type is displayed below the network name. If your network type is public, click Public network, and then select either Home network or Work network.

Picture of Network and Sharing CenterThe network location type is displayed in Network and Sharing Center
Warning

Warning

  • You should only change a network to Home or Work if it's a known and trusted network, such as your home or small business network. Changing a network in a public place to Home or Work can be a security risk because it allows other people on the network to see your PC.

Make sure your firewall allows file and printer sharing

If you're using Windows Firewall, you can skip this step, because Windows Firewall automatically uses the correct settings for file and printer sharing when you share something or turn on network discovery. If you're not using Windows Firewall, expand the "Firewall ports" section below and open the listed ports on your firewall, or contact your firewall manufacturer for assistance.

Firewall ports

To find other PCs running Windows Vista, Windows 7, Windows 8, or Windows RT, open these ports:

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

To find other PCs running earlier Windows operating systems, and to use file and printer sharing on any Windows operating system, open these ports:

  • UDP 137

  • UDP 138

  • TCP 139

  • TCP 445

  • UDP 5355

To find network devices, open these ports:

  • UDP 1900

  • TCP 2869

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

If you also have a homegroup on your network, open the following additional ports:

  • UDP 137

  • UDP 138

  • TCP 139

  • TCP 445

  • UDP 1900

  • TCP 2869

  • UDP 3540

  • TCP 3587

  • UDP 3702

  • UDP 5355

  • TCP 5357

  • TCP 5358

Share your files and printers

Now that you’ve prepared the PCs on your network, the next step is to indicate which files, folders, and printers you want to share. Go to the PC where you store the items you want to share. Then follow the steps below for the Windows operating system that PC is running.

To share a file or folder

To share a file or folder, right-click it, click Share, and then select the people or groups you want to share with. You can also assign permissions so that those people can or cannot make changes to the file or folder you shared. For more information, see Share files with someone.

About password-protected sharing

Password-protected sharing is a more secure method of sharing files and folders on a network, and it is turned on by default for PCs in workgroups. With password-protected sharing turned on, people on your network can't access shared folders on other PCs, including the Public folders, unless they have a user name and password on the PC that has the shared folders. They will be prompted to type a user name and password when accessing the shared folders.

For quicker access, you might want to have matching user accounts on all your PCs. For example, Dana wants to use password-protected sharing to more securely share files and printers between her two PCs. On one PC, she has the user account "Dana22" and the password "Fly43$." If she sets up that same user account and password combination on her second PC, she can more quickly access shared files. If Dana changes the password on one of these PCs, she must make the same change on the other PC.

Note

Note

  • Password protected sharing isn't available on PCs that belong to a domain.

To turn off password-protected sharing (optional)

  1. Open Advanced sharing settings by clicking the Start button Picture of the Start button, and then clicking Control Panel. In the search box, type network, click Network and Sharing Center, and then, in the left pane, click Change advanced sharing settings.
  2. Click the chevron Picture of the chevron icon to expand the current network profile.
  3. Under Password protected sharing, click Turn off password protected sharing, and then click Save changes. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

To share a printer

When you first connect a printer to your PC, you have the option of sharing it. But even if you didn't choose to share it originally, you can still do it later. Here's how:

  1. Click the Start button Picture of the Start button, and then click Devices and Printers.
  2. Right-click the printer you want to share, and then click Printer properties.

  3. Click the Sharing tab, select the Share this printer check box, and then click OK.

Access the shared files and printers

Now we're ready for the final step—accessing the shared files, folders, and printers.

To access shared files or folders

  1. Click the Start button Picture of the Start button, and then click your user name.
  2. In the left pane, click Network.

  3. In the center pane, double-click the PC you want to access, and then navigate to the folder you want.

  4. Type your user name and password if required.

To access shared printers

  1. Click the Start button Picture of the Start button, and then click Devices and Printers.
  2. Click Add a printer, and then click Add a network, wireless, or Bluetooth printer.

  3. Click the printer you want to access, and then click Next.

  4. If a dialog box appears asking you to install the driver, click Install driver. Administrator permission required If you're prompted for an administrator password or confirmation, type the password or provide confirmation.

  5. After the driver is installed, click Next, and then click Finish.

Introduction

This tutorial is designed to help you set up file and printer sharing on a network that has PCs running different Windows operating systems. Because the instructions can vary, open this tutorial on each PC so that you see the correct instructions, or use the selector at right to choose an operating system.

To move through this tutorial, click each step in the left pane or click Next below, completing each step before moving on.

Note

Note

  • If all the PCs on your network are running Windows 7, Windows 8, or Windows RT, we recommend creating a homegroup instead of using this tutorial. It gives you a much easier way to share files and printers on a home network. For a step-by-step tutorial on creating and using a homegroup, see HomeGroup from start to finish.

Prepare your PCs that are running Windows Vista

Follow these steps on each of your PCs running Windows Vista.

Change the workgroup name, if needed

Note

Note

  • If you don't have any PCs running Windows XP, you can skip this step.

If your network includes PCs running Windows XP, it’s important to use the same workgroup name for all of the PCs on your network. This makes it possible for PCs running different Windows operating systems to detect and access each other. Remember that the default workgroup name is not the same in all Windows operating systems.

  1. Open System by clicking the Start button Picture of the Start button, clicking Control Panel, clicking System and Security, and then clicking System. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  2. The workgroup name is displayed under Computer name, domain, and workgroup settings.

Set the network location to Private

Next, check the network location and make sure it's set to Private. This automatically turns on network discovery and adjusts other security settings.

  1. Open Network and Sharing Center by clicking the Start button Picture of the Start button, clicking Control Panel, clicking Network and Internet, and then clicking Network and Sharing Center.
  2. Click Customize, and then click Private.

  3. Click Next, and then click Close.

Warning

Warning

  • You should only change a network to Private if it's a known and trusted network, such as your home or small business network. Changing a network in a public place to Private can be a security risk because it allows other people on the network to see your PC.

Turn on file sharing, public folder sharing, and printer sharing

These settings make it possible for you to see and access shared files and printers on other PCs.

  1. Open Network and Sharing Center by clicking the Start button Picture of the Start button, clicking Control Panel, clicking Network and Internet, and then clicking Network and Sharing Center.
  2. Under Sharing and Discovery, click the chevron Picture of the chevron icon next to File sharing to expand the section, click Turn on file sharing, and then click Apply. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
  3. Click the chevron Picture of the chevron next to Public folder sharing to expand the section, and then do one of the following:
    • To share the Public folder so that people on other PCs on the network can open files in it but can't create or change files, click Turn on sharing so anyone with network access can open files, and then click Apply. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation. This is the default setting.

    • To share the Public folder so that people on other PCs on the network can open files in it and also create or change files, click Turn on sharing so anyone with network access can open, change, and create files, and then click Apply. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

  4. Click the chevron Picture of the chevron next to Printer sharing to expand the section, click Turn on printer sharing, and then click Apply. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Note

Note

  • Network discovery is turned on when you select the Private network location.

About password-protected sharing

Password-protected sharing is a more secure method of sharing files and folders on a network, and it is turned on by default for PCs in workgroups. With password-protected sharing turned on, people on your network can't access shared folders on other PCs, including the Public folders, unless they have a user name and password on the PC that has the shared folders. They will be prompted to type a user name and password when accessing the shared folders.

For quicker access, you might want to have matching user accounts on all your PCs. For example, Dana wants to use password-protected sharing to more securely share files and printers between her two PCs. On one PC, she has the user account "Dana22" and the password "Fly43$." If she sets up that same user account and password combination on her second PC, she can more quickly access shared files. If Dana changes the password on one of these PCs, she must make the same change on the other PC.

Note

Note

  • Password protected sharing isn't available on PCs that belong to a domain.

To turn off password-protected sharing (optional)

  1. Open Network and Sharing Center by clicking the Start button Picture of the Start button, clicking Control Panel, clicking Network and Internet, and then clicking Network and Sharing Center.
  2. Under Sharing and Discovery, click the arrow button Picture of the arrow button next to Password protected sharing.
  3. Click Turn off password protected sharing, and then click Apply. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

Share your files and printers

Now that you’ve prepared the PCs on your network, the next step is to indicate which files, folders, and printers you want to share. Go to the PC where you store the items you want to share. Then follow the steps below for the Windows operating system that PC is running.

To share a file or folder

To share a file or folder, right-click it, click Share, and then select the people or groups you want to share with. You can also assign permissions so that those people can or cannot make changes to the file or folder you shared. For more information, see Share files with someone.

To share a printer

When you first connect a printer to your PC, you have the option of sharing it. But even if you didn't choose to share it originally, you can still do it later. Here's how:

  1. Click the Start button Picture of the Start button, and then click Control Panel.
  2. Type "printers" in the search box, and then click Printers.

  3. Right-click the printer you want to share, and then click Properties.

  4. Click the Sharing tab, and then click Change sharing options. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

  5. Select the Share this printer check box, and then click OK.

Access the shared files and printers

Now we're ready for the final step—accessing the shared files, folders, and printers.

To access shared files or folders

  1. Click the Start button Picture of the Start button , and then click Network.
  2. Double-click the PC you want to access, and then type your user name and password if required.

  3. Navigate to the folder you want.

To access shared printers

  1. Click the Start button Picture of the Start button, and then click Control Panel.
  2. Type "printers" in the search box, and then, under Printers, click Add a printer.

  3. Click Add a network, wireless, or Bluetooth printer.

  4. Click the printer that you want to access, and then click Next.

  5. If a dialog box appears asking you to install the driver, click Install driver. Administrator permission required If you are prompted for an administrator password or confirmation, type the password or provide confirmation.

  6. After the driver is installed, click Next, and then click Finish.

Introduction

This tutorial is designed to help you set up file and printer sharing on a network that has PCs running different Windows operating systems. Because the instructions can vary, open this tutorial on each PC so that you see the correct instructions, or use the selector at right to choose an operating system.

To move through this tutorial, click each step in the left pane or click Next below, completing each step before moving on.

Note

Note

  • If all the PCs on your network are running Windows 7, Windows 8, or Windows RT, we recommend creating a homegroup instead of using this tutorial. It gives you a much easier way to share files and printers on a home network. For a step-by-step tutorial on creating and using a homegroup, see HomeGroup from start to finish.

Prepare your PCs that are running Windows XP

Follow these steps on each of your PCs running Windows XP.

Run the Network Setup Wizard

  1. Click Start, click Control Panel, and then click Network and Internet Connections.

  2. Click Network Setup Wizard, and then follow the instructions on your screen.

  3. On the Name your network page, type the same workgroup name used by your other PCs.

  4. On the File and printer sharing page, select Turn on file and printer sharing.

Note

Note

  • If your network includes PCs running Windows XP, it’s important to use the same workgroup name for all of the PCs on your network. This makes it possible for PCs running different Windows operating systems to detect and access each other. Remember that the default workgroup name is not the same in all Windows operating systems.

Specify what you want to share

  1. Right-click the folder that you want to share, and then click Sharing and Security.

  2. If you are sharing a drive, on the Sharing tab, click If you understand the risk but still want to share the root of the drive, click here.

  3. Select the Share this folder on the network check box.

Note

Note

  • To share individual files in Windows XP, either put them in a folder and share the folder, or share them using the Public folder.

Share your files and printers

Now that you’ve prepared the PCs on your network, the next step is to indicate which files, folders, and printers you want to share. Go to the PC where you store the items you want to share.

To share a file or folder

To share a file or folder, right-click it, click Sharing and Security, and then select the people or groups you want to share with. You can also assign permissions so that those people can or cannot make changes to the file or folder you shared.

To share a printer

When you first connect a printer to your PC, you have the option of sharing it. But even if you didn't choose to share it originally, you can still do it later. Here's how:

  1. Click Start, and then click Printers and Faxes.

  2. Right-click the printer you want to share, and then click Sharing.

  3. Click Share this printer, and then click OK.

Access the shared files and folders

Now we're ready for the final step—accessing the shared files and folders. Instructions for accessing shared printers are on the following tab.

To access shared files or folders

  1. Click Start, and then click My Computer.

  2. Under Other places, click My Network Places.

  3. Under Network Tasks, click View workgroup computers.

  4. Double-click the PC you want to access, and then type your user name and password.

  5. Navigate to the folder you want.

Access the shared printers

Here's how to access the printers you've shared. Instructions for accessing shared files and folders are on the previous tab.

To access shared printers

  1. Click Start, and then click Printers and Faxes.

  2. In the left pane, click Add a printer.

  3. In the wizard that appears, click Next, and then select A network printer, or a printer attached to another computer.

  4. Select Browse for a printer, and then click Next.

  5. Double-click the name of the PC that the printer is attached to, select the printer you want to access, and then click Next.

  6. On the dialog box that appears, click Yes, and then complete the rest of the wizard.

Need more help?

Help from the community

Get answers to your questions in the Windows forum.

Help from Microsoft

Get help from a support professional by phone, email, or chat.