Can I backup current local shares info (generate *.bat file)?


  1. Posts : 244
    win7pro 64bit
       #1

    Can I backup current local shares info (generate *.bat file)?


    On another computer it happened that after a crash all share and access right information was lost and I had to re-configure it all manually again. This is annoying.

    In particular I have setup share names for approx 12 different folders and changed access rights for them
    (e.g. remove "Everyone read access" and assign "read-write access for user AAA").

    Can I easily(!) save/backup this info somehow to a file so that I could later just double click on it to re-apply this?

    This backup file could be a simple generated *.batch file which contains something like

    net share mysharename123=E:\logs\2012 /GRANT:AAA,FULL

    lines for all of my customized directories. Default Win 7 shares and rights can be omitted.

    Alternatively can I extract this easily from Registry (where exactly)?

    Is there an easy solution for that?

    Peter
      My Computer


  2. Posts : 10,796
    Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
       #2

    Code:
    net share MyShareName="C:\My Local Path\SomeFolder" /GRANT:Everyone,FULL /PERSISTANT:YES
    As far as security goes, the best-practice is to do as above, grant the Everyone group full control on the share, and then manage the permissions on the files and folders themselves. This is because the share permissions are a restriction filter over top of the actual file and folder permissions.
    -------
    Such info won't dissappear after a crash. Never saw that happening
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:17.
Find Us