net share

About this tag
The net share command is a Windows command-line tool used to manage shared folders. Discussions on WindowsForum cover using net share to create shares with specific user permissions via the /GRANT parameter, such as granting full access to a user. Users also explore how to list all existing shares and remove permissions, like revoking access for the Everyone group. The command is compared to cacls, with net share focusing on folder-level sharing permissions while cacls handles file and folder NTFS permissions. Additionally, users ask about accessing shared folders remotely with net use over VPN and IPv6, including which ports are used and whether IPv6 addresses work with the command.
  1. P

    Windows 10 Access shared folder on remote comp. with "net share" cmdd through VPN and IPv6?

    In the past I mount a remote shared folder as drive W: in my local Windows Explorer with a command similar to: net use w: \\192.168.0.21\myshare /persistent:no This works successfully on a IPv4 connection. At first: Which remote port does the "net share" command (implicitely) connect to on...
  2. P

    Windows 7 How to list all shares? How to cmdline remove GRANT for everyone ?

    To create a folder share and grant full permissions to user karl I can write on cmdline: net share "myshare123"="D:\tool" /GRANT:karl,FULL ok, it works. But what about the other way: Is there a way to generate all the full "net share" commands for ALL currently existing folder shares? I...
  3. P

    Windows 7 Folder sharing: Difference between "cacls" and "net share" ?

    I want to specify from command line that user "Karl" has Full access to local folder (and subfolders) D:\proj\logs Which command is recommended here: cacls or "net share" What is the difference? Is "net share" for folders the same as "cacls" for files? Peter