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
pstein

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?

Peter


My System SpecsSystem Spec
.
14 Feb 2014   #2
Kaktussoft

Microsoft Community Contributor Award Recipient

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

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

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




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
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
Info about folder in AppData\Local\Google\Chrome\Application
hey guys, I was seeing this folder in my appdata folder for long time and seems it contains updates to chrome. here is the full path, \AppData\Local\Google\Chrome\Application. it contains some other files and specifically two folders named, 17.0.963.56 and 17.0.963.79, which are named exactly...
Browsers & Mail
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
Reinstalling Win7 Can I backup current ProductKey & Activation?
Hi After attempting in vain to install IE9 beta. My windows is playing up and cant install anything now. I get "The resource loader cache doesn't have loaded MUI entry" error I have tried SFC /scannow but nothing. And I do not have any "System Restore" now the "Turn Windows Features" Winds is...
Backup and Restore


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 06:53.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App