Sharing folders is common in Windows, especially in enterprise environments. Learn the three methods I use to share folders in Windows.

Option 1: Share with Network File and Folder Sharing

Windows provides a quick way to share folders. Although it gives you less control, it offers a quick and easy way to perform the task.

Here are the detailed steps to use this method.

  1. Right-click the folder you want to share and select “Properties.”
  1. Click the Sharing tab on the folder’s Properties sheet and select “Share.”
Click the Sharing tab on the folder's Properties sheet and select ShareClick the Sharing tab on the folder's Properties sheet and select Share

By default, when the “Network access” window opens, the currently logged-in user is selected with the “Owner” permission.

By default, when the Network access window opens, the currently logged-in user is selected with the Owner permissionBy default, when the Network access window opens, the currently logged-in user is selected with the Owner permission
  1. To share the folder with a local user on the PC, click the arrow, then select an existing user. Once the user is selected, click “Add.”
To share the folder with a local user on the PC, click the arrow, then select an existing userTo share the folder with a local user on the PC, click the arrow, then select an existing user
Once the user is selected, click AddOnce the user is selected, click Add
  1. The share will be added with the “Read” permission. To modify the permission, click the arrow beside “Read”, then select “Read/Write.”

If you want to remove the share at this stage, select Remove.

To modify the permission, click the arrow beside Read, then select Read-writeTo modify the permission, click the arrow beside Read, then select Read-write
  1. Finally, complete the process by clicking the “Share” button.
Finally, complete the process by clicking the "Share" button. Finally, complete the process by clicking the "Share" button.

Once the folder sharing is completed, the “Network access” will display the network path to the share. Mine is \ITGLTUK01Inputs as shown in my screenshot below.

This is the path users need to access the shared folder from another computer. Click Done to close the window.

This is the path users need to access the shared folder from another computer. This is the path users need to access the shared folder from another computer.

Option 2: Share with Advanced Sharing

  1. Open the properties of the folder you want to share by right-clicking it and selecting “Properties.”
  2. Then, on the Sharing tab, click “Advanced sharing.”
Then, on the Sharing tab, click "Advanced sharing."Then, on the Sharing tab, click "Advanced sharing."
  1. When the Advanced sharing window opens, if you followed the steps in Option 1 of this article, the “Share this folder” checkbox will be checked. Otherwise, check it to begin.

    Then, to add a new share, click “Add.”

When the Advanced sharing window opens, if you followed the steps in Option 1 of this article, the "Share this folder" checkbox will be checked. Otherwise, check it to begin.

Then, to add a new share, click "Add."When the Advanced sharing window opens, if you followed the steps in Option 1 of this article, the "Share this folder" checkbox will be checked. Otherwise, check it to begin.

Then, to add a new share, click "Add."

The benefit of using the “Advanced sharing” option compared to the “Network File and Folder Sharing” option is that the “Advanced sharing” option gives you more control. For example, as shown in the above screenshot, you can determine the number of concurrent connections to the share. Additionally, you can add comments and set Caching for the share.

  1. On the “New share” window, give the share a name and set the number of users allowed to connect to the share concurrently.
Finally, on the New share window, give the share a name and set the number of users allowed to connect to the share concurrentlyFinally, on the New share window, give the share a name and set the number of users allowed to connect to the share concurrently

To set a permission for the new share, click “Permissions.”

  1. Finally, click OK to complete the process.
Finally, click OK to complete the processFinally, click OK to complete the process

Option 3: Share with PowerShell (New-SmbShare)

The fastest way to share a folder with PowerShell is to set the parameters in a variable to be used with the New-SmbShare command.

Here is the code I am using to share the folder, “D:Inputs” with a share name of “Powershell-share”. When you set the parameter, you can also include the permission type and the users or groups you’re granting access.

In my example code below, I am granting members of the Administrators group on the local computer full access to the share. If copying and pasting the code directly to PowerShell does not work, copy it to Notepad first.
$Parameters = @{
Name="Powershell-share"
Path="D:Inputs"
FullAccess="Administrators" } 
New-SmbShare @Parameters

When you run the script, PowerShell displays the results of the share.

To confirm that the share worked, I’ll review the folder Properties. The left side of the screenshot below shows the share name, ‘Powershell-share’.

Meanwhile, on the right side, I have shown the share permission for the local administrators group. So, the PowerShell share worked!

Option 3: Share with PowerShell (New-SmbShare) - result of commandOption 3: Share with PowerShell (New-SmbShare) - result of command

Conclusion

Whether you work as a Systems Administrator or a normal user, you may encounter the need to share folders from time to time.

In this article, I have shared three methods I use to perform this task, including using PowerShell.

I strongly believe that I met your expectations of reading this article. If I did, kindly let me know by responding to the “Was this page helpful?” question below.

However, if the article fell short of your expectations, let me know by clicking No, and then providing details. We take your feedback seriously and use it to re-write our articles.

Before you go, you may benefit from browsing our Windows 11 How-to guides for more hands-on articles.

Victor Ashiedu

Source link

You May Also Like

Interlune: Mining Helium-3 On The Moon

Interlune, a new space startup founded by former Blue Origin employees Rob…

Bajaj Maxima Z: The new multi-purpose business partner

Are you looking for a reliable vehicle with all your business ideas…

Logitech G502: Comfort, Precision, and Customization

The Logitech G502 is a gaming mouse that has made a name…

Measles Strikes a Florida Elementary School With Over 100 Unvaccinated Kids

Florida health officials on Sunday announced an investigation into a cluster of…