Using SRVAUTO.PRO to Configure LAN Manager Shares

ID: Q125664


The information in this article applies to:
  • Microsoft LAN Manager, versions 2.1, 2.1a, 2.2, 2.2a, 2.2b


SUMMARY

Microsoft LAN Manager servers have a SRVAUTO.PRO file in the LANMAN\PROFILES directory. LAN Manager reads this file when the Server service starts to determine what shares to establish.

To avoid repeating all of the steps for creating or re-creating the shares and assigning permissions to them, copy this file to create SRVAUTO.CMD, or any other .CMD file. You can run the .CMD file as a batch file on any LAN Manager server with the same directory structure.


MORE INFORMATION

The following is an example of a simple SRVAUTO.PRO file.


   NET SHARE "USERS=C:\LANMAN\ACCOUNTS\USERDIRS" /REMARK:"Logon server
   share " /PERMISSIONS:"RX" /UNLIMITED
   NET SHARE "NETLOGON=C:\LANMAN\REPL\IMPORT\SCRIPTS" /REMARK:"Logon server
   share " /PERMISSIONS:"RX" /UNLIMITED
   NET SHARE "PUBLIC=C:\PUBLIC" /REMARK:"Public Files" /PERMISSIONS:"RCX"
   /UNLIMITED
   NET SHARE "EDRIVE=E:\" /REMARK:"" /PERMISSIONS:"" /UNLIMITED 
NOTE: NET SHARE through UNLIMITED in each NET SHARE command represents a single line wrapped here due to column width restrictions.

When you run this .CMD file, the USERS, NETLOGON, PUBLIC, and EDRIVE shares are created with the permissions and remarks that appear on the respective NET SHARE command lines. The LAN Manager server then sets up its own SRVAUTO.PRO with this same information to re-establish these shares each time the Server service is started. (The shares are not created if the same share names already exist.)

To complete this process on a LAN Manager server with user-level security, you must also assign users the appropriate permissions to the share(s).

Additional query words: 2.10 2.10a 2.20 2.20a 2.20b

Keywords :
Version : :2.1,2.1a,2.2,2.2a,2.2b
Platform :
Issue type :


Last Reviewed: November 11, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.