copy shares and permissions

G

Guest

is there a way to creating multiple files shares and copy permissions on a
remote server. I replicate the data allready and i want to create the shares
and permissions into a remote server by using a script. Is ti possible? i
have exported all the shares into a .cvs file.
Thanks
 
J

Jerold Schulman

is there a way to creating multiple files shares and copy permissions on a
remote server. I replicate the data allready and i want to create the shares
and permissions into a remote server by using a script. Is ti possible? i
have exported all the shares into a .cvs file.
Thanks


See tip 8587 » How can I transfer a folder structure, shares, and permissions?
in the 'Tips & Tricks' at http://www.jsifaq.com

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
G

Guest

It is a good idea, but i allready have the folder structure transfer and the
data copied. I want to to copy permissions and shares form my old files
server. is there a way to do it through your script. I appreciate your help.
 
G

Guest

How you execute the script to copy permissions from file server into a new
file server where the folder hierarchy allready exist. Thank you
 
J

Jerold Schulman

Remove the following:

for /f "Tokens=1*" %%a in ('type %namep%^|findstr /I /L /C:"+File"') do (
if not exist "%%b" MD "%%b"
)
for /f "Tokens=1*" %%a in ('type %namef%^|findstr /I /L /C:"+File"') do (
if not exist "%%b" MD "%%b"
)



How you execute the script to copy permissions from file server into a new
file server where the folder hierarchy allready exist. Thank you

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top