Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

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

14 Feb 2014   #1

win7pro 64bit
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?


My System SpecsSystem Spec
14 Feb 2014   #2

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1

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 System SpecsSystem Spec

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

Thread Tools

Similar help and support threads
Thread Forum
Need to Edit Boot Options to boot from local USB Backup File at cmd Wi
At Win login system Group denies access for insufficient rights. A hack created many users and groups and granted access to all but denied me 'owner' access to change or modify any of the accounts created nor could I create a new one. Now it longer lets me log in to Windows on start-up. It will...
Backup and Restore
How to find / generate meaningful info on a hard freeze
I'm having an issue where the display / video on my machine basically stutters and then freezes completely. It's usually while browsing the internet or not really doing anything. When gaming it's never done this. Anyway there's no blue screen or anything, just completely frozen screen. Is there...
General Discussion
Copy shares and permissions on file x to file z? Is this possible?
I have a user for whom shares and permissions on the server are working just fine. I have another user for whom something is screwed up somewhere. I've taken a directory that is shared and I've looked up the share and permissions for both. Identical. But do this for 3,000 files/directories in...
Network & Sharing
is it possible to make a F10 or similar backup of my current OS?
Hey, I hope that this is not a silly question however can I ask if its possibly to make a F10 backup of my current drive so that should something go "pear shaped" then the option to restore my PC would be there. There is currently a hidden partition on my laptop with recovery software on it...
Backup and Restore
Is there a way to backup current MS Updates?
Hi guys, I just wanted to know if there's a way where I can store in an ISO, or external Hard Drive an image of all the updates which have been applied to the computer? Is that I don't want to be downloading them again after I reformat my machine... Thanks :p.
Windows Updates & Activation

Our Sites

Site Links

About Us

Find 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 18:27.
Twitter Facebook Google+