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

pstein

New member
Member
VIP
Local time
4:23 PM
Messages
244
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 My Computer

At a glance

win7pro 64bit
Computer type
PC/Desktop
OS
win7pro 64bit
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 My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0
Back
Top