Re: net share

From: Mark H. Wood (mwood@mhw.ULib.IUPUI.Edu)
Date: 03/07/03

  • Next message: Ha Vu: "Activex self-registers under XP, Win2K, but not NT"
    From: "Mark H. Wood" <mwood@mhw.ULib.IUPUI.Edu>
    Date: Fri, 7 Mar 2003 14:51:46 +0000 (UTC)
    
    

    Rich marquette <rmarket@dca.net> wrote:
    > Try
    >
    > Net share x: \\servername\Sharename /user:(domain)username
    >
    > I use it all the time

    You must be thinking of NET USE. NET SHARE has no such switch,
    although it does have /USERS:n which sets the maximum number of
    connections permitted.

    NET SHARE hasn't kept up with the development of Windows' networking
    model. There doesn't seem to be any way to set the ACL on the share
    with NET SHARE or any other NET command. The NET SHARE command
    probably just packages its arguments in a NET_SHARE_INFO_2 or
    NET_SHARE_INFO_502 structure and passes them to NetShareAdd(), and
    these structures only define a single permission mask and password for
    use with share-level security, which modern versions of Windows do not
    implement.

    -- 
    Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
    MS Windows *is* user-friendly, but only for certain values of "user".
    

  • Next message: Ha Vu: "Activex self-registers under XP, Win2K, but not NT"

    Relevant Pages

    • Re: net share
      ... Mark H. Wood wrote: ... > with NET SHARE or any other NET command. ... which modern versions of Windows do not ...
      (comp.os.ms-windows.nt.admin.security)
    • Re: Account naming conventions?
      ... Not really -- more like a guide to a standardized system that works best. ... I have a Windows 2003 server in an enterprise that includes boxes ... The first box we put in would not allow us to set %username% ... Doe") then the net command will not add the share. ...
      (microsoft.public.windows.server.general)
    • the net command
      ... the net command in windows seems to be a rather useful command. ... documentation on it seems to be hard to find. ... for microsoft net or windows net yields stuff about .NET, ...
      (microsoft.public.windowsxp.general)
    • Re: NET.EXE and the SHELL command.
      ... > everything works as expected, but if I instead run the NET command, using ... > When I use "Windows Explorer" to see if the drive has been mapped it ... > Why cant't I map the network drive from a SHELL statement? ...
      (comp.lang.basic.powerbasic)
    • Re: Switch from mixed to native mode : risks ?
      ... Before making the switch have backups of all DCs ... # Jorge de Almeida Pinto # MVP Windows Server - Directory Services ... I want to switch my domain to native mode. ... I want to know if there is any risk for: ...
      (microsoft.public.windows.server.migration)