Windows OS Hub
  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows Server 2022
    • Windows 10
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / How to Share a Folder (Printer) over the Network on Windows 11/10

March 12, 2025 Windows 10Windows 11

How to Share a Folder (Printer) over the Network on Windows 11/10

If you want to share files or printers on a Windows computer, you can publish them as network shares and make them accessible using the SMB protocol. This article explains how to grant shared access to a folder or printer on a Windows computer within a home or small office local area network (LAN) without using the legacy HomeGroup feature.

Contents:
  • Enable Network File and Printer Sharing on Windows
  • How to Create a Shared Folder (SMB) on Windows 11 and 10
  • How to Share a Printer over a Network on Windows

Enable Network File and Printer Sharing on Windows

Before creating shared resources on a Windows computer to be used as a file/print server, you need to configure certain network services and sharing options.

Check that the Private network profile is selected on all computers in the local network.

  1. Go to Settings -> Network and Internet -> select your network connection (Ethernet0 in my case).
  2. By default, Windows 11 sets the Public network profile for network connections, which is not suitable for file sharing. Change it to Private. Change network profile on Windows to Private
You can use PowerShell to check and change the network profile type in Windows:
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceIndex your_interface_index -NetworkCategory Private

powershell: change network category to private

In Settings (or Control Panel), turn on network sharing for your computer.

  1. Go to Settings -> Network and Internet -> Advanced network settings -> Advanced sharing settings (to quickly navigate to this Setting app section, run the command: control.exe /name Microsoft.NetworkAndSharingCenter /page Advanced )
  2. Enable Network Discovery for the Private network profile (required to view computers in the network environment)
  3. Enable the File and printer sharingEnable file and printer sharing on Windows

Check the following requirements as well:

  • All computers must be connected to the same LAN segment, or network connectivity must be provided through routers
  • Unique names (hostnames) and IP addresses are assigned to all computers on the local network (usually dynamically assigned by a DHCP server on a router/Wi-Fi access point.)
  • If you still have computers running older versions of Windows (XP, Vista) or legacy NAS on your network, you will need to enable SMBv1 protocol support on your Windows 10 or 11 computers to ensure communication with these legacy devices. Also, 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, you may receive error 0x80070035: The network path was not found when accessing a shared network folder.
  • Contrary to popular belief, computers don’t need to be in the same workgroup to communicate with each other over a network.

How to Create a Shared Folder (SMB) on Windows 11 and 10

Windows allows you to share any local directory on your computer over the network. This means that other computers on your LAN can open files from this shared folder. Let’s see how to share a folder on Windows 10 and 11 in a workgroup environment.

    1. Open the Windows File Explorer and find the folder you want to share
    2. Right-click on a folder and select Give access to -> Specific peopleGive access to - Specific people
    3. You can grant access to a specific user account (if password access is enabled, the user will be prompted for a password when accessing this shared folder). Or you can allow access for all users, including anonymous ones (the Everyone group).
    4. Configure network folder access permissions. You can grant Read, Read/Write permissions, or Remove access for the specific users or groups.shared folder permissions
    5. If you haven’t already, you’ll be prompted to turn on network discovery and file sharing.
    6. You will then see a message that your folder is shared and its UNC network address: \\Desktop-IOPF9\Distr UNC path begin with the computer name (host name) or IP address, followed by the name of the shared folder. You can copy this link to the clipboard or send it by e-mail.win10: your folder is shared
Tip. Open the following path in the File Explorer address bar to view a complete list of shared folders on your computer: \\localhost .

You can use a different interface to share a local folder or drive.

  1. Open the folder properties in Windows Explorer
  2. Go to the Sharing tab and click the Advanced Sharing button.
  3. Enable the Share this folder option.
  4. Click Permissions to manage shared folder access.
  5. Grant Change+Read permissions to the Everyone group.Share a folder using File Explorer
  6. These permissions on a shared folder indicate that the local NTFS permissions assigned to file system objects are used to control access to the files within that folder.

To centrally manage shared network folders and permissions on a computer, system administrators often use thefsmgmt.msc(Shared Folder Management) snap-in.

  1. Open the Shared Folders console and go to the Shared section
  2. It contains a list of all shared folders on the computer. This includes the administrative folders (Admin$, C$, IPC$). manage shared folders in windows 10
     In the Open Files section of the console, you can view a list of files that remote users have opened on your computer over the network.
  3. To create a new shared folder, 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
  5. You can use this console to view or change the current permissions for 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 shared folder level, the effective access permissions for files and folders will be determined by the NTFS ACL (Access Control List) on the Security tab.change shared folders permissions
You can share a folder over the network by using the New-SmbShare PowerShell cmdlet.  For example, to share a local folder C:\Docs, run this command:

New-SmbShare -Name Scripts -Path C:\Docs -FullAccess Everyone

New-SmbShare: create shared folder powershell

Now, you can open this folder from another computer over the network. To do this, simply use the File Explorer to navigate to the UNC path of the shared network folder (for example \\Desktop-IOPF9\Tools).

You will be prompted to enter a username and password when accessing a shared folder. Enter the name and password of a local user account on the remote computer authorized to access the shared folder (password can be saved in Windows Credential Manager).

Enter user credentals to access shared folder

If the account credentials are correct, you will see a list of files in the shared folder.

If identical accounts with the same usernames and passwords exist on both the local and remote computers, the user will not be prompted for a password when accessing a shared folder. The credentials of the currently logged-in user will be used to authenticate to the remote computer.

For convenience, you can create a desktop shortcut to this folder or map it as a network drive using the net use command.

windows 10 list of shared folders and printers

Note. If you cannot access a shared folder from a remote computer, make sure that file and printer sharing is allowed on a private network in the Windows Defender Firewall settings:

  1. To open the Windows Firewall applet, run the command: control firewall.cpl
  2. In the left panel, click Allow an app or feature through Windows Defender Firewall Change Windows Firewall settings
  3. Verify that the File and Printer Sharing rule is enabled for the Private network. Enable firewall rule: File and Printer Sharing

Also, try to access the remote computer by its IP address instead of its name. For example: \\192.168.13.202\Distr.

How to Share a Printer over a Network on Windows

In Windows 10 and 11, you can share a local printer that is connected to your computer with other computers on the network. It is assumed that a local printer (USB, LPT, or wireless) is already connected to the computer and configured.

To share a printer on a Windows computer (to which the printer is directly connected)

  1. Go to Settings -> Bluetooth and Devices -> Printers and Scanners (or use the Settings URI command: ms-settings:printers);
  2. Right-click the printer and select 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 shared printer name.create shared printer in windows 11

Do not use spaces or special characters in the shared printer name; use only English letters and numbers (this name will be used to connect the printer to other computers).

You can use PowerShell commands to share a printer. List the printers installed on a computer:

Get-Printer

Share a local printer 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. Right-click on the Start menu and select Run, or press the Win+R;
  2. Connect to a remote computer with a shared printer by its name or IP address (use the hostname command to check the computer name and ipconfig to get the IP address). Enter the name of the remote computer in the 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
  3. If password protection is enabled on the remote computer, you will be prompted to enter the remote username and password to connect. Then, you will see a list of shared folders and printers on the remote host.
  4. Right-click the printer and select Connect. Windows will download and install the print driver from the remote computer and will create a shared network printer connection.connecting shared printer from remote computer in windows
  5. Now you can use this printer to send your print jobs over the network to a remote computer.remote printer on windows computer
When connecting to 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 workaround this, 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 can manually install the printer 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

This tutorial covers creating a simple file server with shared folders and printers on Windows 11 or 10. But keep in mind that the maximum number of simultaneous network connections (sessions) to such a computer is limited to 20. If you have more clients on your network, Microsoft recommends using Windows Server as a shared file server.

1 comment
4
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

How to Cancel Windows Update Pending Restart Loop

May 6, 2025

View Windows Update History with PowerShell (CMD)

April 30, 2025

Change BIOS from Legacy to UEFI without Reinstalling...

April 21, 2025

Remove ‘Your License isn’t Genuine’ Banner in MS...

April 21, 2025

Uninstalling Windows Updates via CMD/PowerShell

April 18, 2025

1 comment

Adrian March 18, 2024 - 5:26 am

I don’t know why they removed the homegroup, now you new to do a lot of steps to have same result…

Reply

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

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

  • Cannot Install Network Adapter Drivers on Windows Server

    April 29, 2025
  • Change BIOS from Legacy to UEFI without Reinstalling Windows

    April 21, 2025
  • How to Prefer IPv4 over IPv6 in Windows Networks

    April 9, 2025
  • Load Drivers from WinPE or Recovery CMD

    March 26, 2025
  • How to Block Common (Weak) Passwords in Active Directory

    March 25, 2025
  • Fix: The referenced assembly could not be found error (0x80073701) on Windows

    March 17, 2025
  • Exclude a Specific User or Computer from Group Policy

    March 12, 2025
  • AD Domain Join: Computer Account Re-use Blocked

    March 11, 2025
  • How to Write Logs to the Windows Event Viewer from PowerShell/CMD

    March 3, 2025
  • How to Hide (Block) a Specific Windows Update

    February 25, 2025

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
  • Install and Manage Windows Updates with PowerShell (PSWindowsUpdate)
Footer Logo

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


Back To Top