Windows OS Hub
  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Active Directory Domain Services (AD DS)
    • Group Policies
  • Windows Clients
    • Windows 11
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows XP
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
    • KVM
  • PowerShell
  • Exchange
  • Cloud
    • Azure
    • Microsoft 365
    • Office 365
  • Linux
    • CentOS
    • RHEL
    • Ubuntu

 Windows OS Hub / Windows 10 / How to Share Files and Printers in Windows 10 and 11

June 8, 2023 Windows 10Windows 11

How to Share Files and Printers in Windows 10 and 11

This article will show you how to share folders, files, and printers between Windows 10/11 devices on your home or small office network. Prior to Windows 10 1803, you could use the HomeGroup feature to share resources across a Windows network, making it easy to create a small home or office network and quickly share folders and printers. In modern Windows builds, you can use the built-in SMB features to share files and printers without HomeGroup.

Contents:
  • Enable Files and Printer Sharing on Windows 10 and 11
  • How to Share a Folder over the Network in Windows 10 and 11?
  • How to Share Printer on a Network in Windows 10 and 11?

Enable Files and Printer Sharing on Windows 10 and 11

In order for your Windows computer to act as a server that will share its folders and printers with other devices on your local network, you need to configure some network services and sharing options. We described all these settings and services in the detailed article Windows not showing computers in a network.

In Windows settings (on both computers), go to the Settings -> Network and Internet -> select your network connection (Ethernet or Wi-Fi) -> Change advanced sharing options (or run the command control.exe /name Microsoft.NetworkAndSharingCenter /page Advanced).

Change advanced sharing options

Then enable two options in the Private section:

  • Turn on network discovery;
  • Turn on file and printer sharing.

Turn on network discovery

In the All networks section select the following options:

  • Turn on sharing so anyone with network access can read and write files in the Public folder;
  • Turn off password protected sharing.

You can disable password protection on the home network because you trust all the devices in it.

For a small office LAN, it is better to use password protection. In this case, you need to authenticate on the remote computer to access shared folders and printers. You can either authenticate with the remote computer’s user account and password, or you can create the same account with the same password on all computers and use it to log into the computer.

Turn on sharing on windows 10

Check that the following conditions are true:

  • All computers on your local network use unique names and IP addresses;
  • The type of network is Private (read more about network profiles in Windows);
  • If your network still has computers with legacy Windows versions (XP, Vista), you will have to enable SMBv1 protocol support for their communication in Windows 10 and 11, as well as allow network access under a guest account (see the article);
  • Set the Function Discovery Resource Publication and Function Discovery Provider Host services to start automatically. Otherwise, when accessing shared network resources, you may receive the error 0x80070035: The network path was not found.

You need to set the same settings on another Windows computer, which will be used as a client and access your shared resources over the network.

How to Share a Folder over the Network in Windows 10 and 11?

In Windows, you can share any local directory over the network. After that, other computers on the local network will be able to open files from this shared network folder. Let’s see how to share a folder in modern builds of Windows 10 and 11 in your workgroup or domain.

    1. Open the Windows File Explorer and locate the folder you want to share;
    2. Right-click on it and select Give access to -> Specific people;Give access to - Specific people
    3. You can grant access to a specific account (with password access enabled: the user will be prompted for a password when accessing this network folder). Or you can allow access for all users, including anonymous ones (the Everyone group). In this case, when accessing files in this shared folder, the password will not be requested;
    4. When configuring permissions to access a shared folder, you can grant Read, Read/Write permissions or Remove access for the specific users or groups;shared folder permissions
    5. If you have not previously enabled network discovery, you will be prompted:
      Network discovery and file sharing
      Do you want to turn on network discovery and file sharing for all public networks? 
      - No, make the network that I am connected to a private network (Network discovery and file sharing will be turned on for private networks, such as those in homes and workplaces).
      - Yes, turn on network discovery and file sharing for all public networks.

      If you are setting up a home or office network, select that your network is private Do you want to turn on network discovery and file sharing

    6. You will then receive a message that your folder is shared and its UNC network address: \\Desktop-IOPF9\Distr. You can copy this link to the clipboard or send it by e-mail. win10: your folder is shared
Tip. To view a complete list of shared folders on your computer, open the following path in the File Explorer: \\localhost .

You can use the fsmgmt.msc (Shared Folder Management) console to fine-tune settings and permissions for network shares.

  1. Open the Shared Folders console and go to the Shared section;
  2. It contains a list shared folder on your computer. It also displays the administrative shares (Admin$, C$, IPC$, etc.), and the number of remote connections to each share (Client Connections);  manage shared folders in windows 10
    You can see the list of files opened on your computer over the network by remote users in the “Open Files” section of the console.
  3. To create a new shared folder on a Windows computer, select Action -> New Shared Folder;
  4. The shared folder wizard opens. Select the local folder that you want to share, and set its network name (Share Name). You can allow this folder to be used offline, and set access permissions;new shared folder wizard on windows
    You can also create a shared network folder using the New-SmbShare PowerShell cmdlet.
  5. In addition, in this console, you can view or change the current access permissions to the shared folder. A network folder has two access lists: Share Permissions and Security (NTFS file system permissions). If you grant access to Everyone at the share level, then effective access permissions to files and folders will be determined by NTFS ACL on the Security tab.change shared folders permissions

Now you can open this folder over the network from another computer. To do this, open File Explorer and navigate to the UNC path of the shared folder (for example \\Desktop-IOPF9\Tools). For convenience, you can create a desktop shortcut to this folder on your desktop or map it as a network drive using the net use command.

windows 10 list of shared folders and printers

Note. If you can’t open a shared folder from a remote computer, check that the Windows Defender firewall settings allow to access shared files and printers on a private network (File and Printer Sharing firewall rules). Also, try accessing a shared folder not by computer name but by IP address. For example: \\192.168.13.202\Distr.

How to Share Printer on a Network in Windows 10 and 11?

In Windows, you can share a local printer connected to your computer with other computers over the network. We assume that you have already connected the printer (via USB, LPT, or wireless connection) and configured it on your computer.

To share a printer on a Windows 10/11 computer (to which the printer is directly connected to):

  1. Go to Settings -> Bluetooth and Devices -> Printers and scanners (or use the Settings URI command: ms-settings:printers);
  2. Select the printer you want to share and click the “Printer properties“;
  3. Go to the Sharing tab;
  4. Click the Change Sharing Options button, then enable the Share this printer option and specify the printer’s share name.create shared printer in windows 11

The shared printer name must not contain spaces or special characters, use only English letters and numbers (this name will be used to connect the printer to other computers).

You can share a printer using PowerShell commands. Get a list of installed printers on your computer:

Get-Printer

Share the printer over the network by its name:

Set-Printer -Name "HP LaserJet M1536" -Shared $True -ShareName "HPLJM1536"

You can now connect this shared printer to another Windows computer.

  1. The easiest way to connect the shared printer is through the network environment;
  2. Right-click on the Start menu and select Run, or press the key combination Win+R;
  3. Connect to a remote computer with a shared printer by its name or IP address (you can get the computer name with hostname or IP address with ipconfig command). Enter the remote computer name in UNC path format: \\ComputerName or \\IPaddress (for example \\192.168.13.202 ) and press OK;browse smb shares by unc path in win r menu
  4. If password protection is enabled on the remote computer, a window will appear asking you to enter the user name and password to connect. Then you will see a list of shared folders and printers on the remote host;
  5. Right-click the printer you want to install and select the Connect option. Windows will download and  install the print driver from the remote computer and connect the shared network printer;connecting shared printer from remote computer in windows
  6. Now you can use this printer to send your print tasks to a remote computer.remote printer on windows computer
If you connect a shared printer, the error Operation failed with error 0x0000011b may appear.

error-0x0000011b when connecting shared printer in windows

The latest Windows security updates block the installation of printer drivers from a remote computer. To bypass this restriction, run the following commands on the remote computer with a shared printer, and then reboot it:

reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f
reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 1 /f

Or you need to manually install the print driver on your computer before connecting the shared network printer (more secure way).

You can also connect the shared printer from a remote computer using the PowerShell command:

Add-Printer -ConnectionName \\192.168.13.102\HPLJM1536

0 comment
2
Facebook Twitter Google + Pinterest
previous post
Create Organizational Units (OU) Structure in Active Directory with PowerShell
next post
Outlook Keeps Asking for Password on Windows

Related Reading

Zabbix: How to Get Data from PowerShell Scripts

October 27, 2023

Tracking Printer Usage with Windows Event Viewer Logs

October 19, 2023

How to Use Ansible to Manage Windows Machines

September 25, 2023

Installing Language Pack in Windows 10/11 with PowerShell

September 15, 2023

How to View and Change BIOS (UEFI) Settings...

September 13, 2023

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange Server
  • Microsoft 365
  • Azure
  • Windows 11
  • Windows 10
  • Windows Server 2022
  • Windows Server 2019
  • Windows Server 2016
  • PowerShell
  • VMWare
  • Hyper-V
  • Linux
  • MS Office

Recent Posts

  • Zabbix: How to Get Data from PowerShell Scripts

    October 27, 2023
  • Tracking Printer Usage with Windows Event Viewer Logs

    October 19, 2023
  • PowerShell: Configure Certificate-Based Authentication for Exchange Online (Azure)

    October 15, 2023
  • Reset Root Password in VMware ESXi

    October 12, 2023
  • How to Query and Change Teams User Presence Status with PowerShell

    October 8, 2023
  • How to Increase Size of Disk Partition in Ubuntu

    October 5, 2023
  • How to Use Ansible to Manage Windows Machines

    September 25, 2023
  • Installing Language Pack in Windows 10/11 with PowerShell

    September 15, 2023
  • Configure Email Forwarding for Mailbox on Exchange Server/Microsoft 365

    September 14, 2023
  • How to View and Change BIOS (UEFI) Settings with PowerShell

    September 13, 2023

Follow us

  • Facebook
  • Twitter
  • Telegram
Popular Posts
  • How to Allow Multiple RDP Sessions on Windows 10 and 11
  • How to Repair EFI/GPT Bootloader on Windows 10 or 11
  • How to Restore Deleted EFI System Partition in Windows
  • Network Computers are not Showing Up in Windows 10/11
  • How to Run Program without Admin Privileges and Bypass UAC Prompt
  • Fix: BSOD Error 0x0000007B (INACCESSABLE_BOOT_DEVICE) on Windows
  • Fixing ‘The Network Path Was Not Found’ 0x80070035 Error Code on Windows
Footer Logo

@2014 - 2023 - Windows OS Hub. All about operating systems for sysadmins


Back To Top