Microsoft KB Archive/125664

= Using SRVAUTO.PRO to Configure LAN Manager Shares =

Article ID: 125664

Article Last Modified on 9/30/2003

-

APPLIES TO


 * Microsoft LAN Manager 2.1 Standard Edition
 * Microsoft LAN Manager 2.1a
 * Microsoft LAN Manager 2.2 Standard Edition
 * Microsoft LAN Manager 2.2a
 * Microsoft LAN Manager 2.2b

-



This article was previously published under Q125664



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: KB125664

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.