Click to See Complete Forum and Search --> : Creating Share on Multiple Workstations at once!


damitchell
05-23-2002, 11:20 AM
My question to the forum is:

Can a file/folder that sits on multiple workstations be turned into a share at one time via a program. Or, will I have to open every workstation as the administrator and share the files/folder individually.

If this can be done swiftly, please explain how. Also, can I set the permissions on the files also when doing this process. I have about 150 - 200 workstations that need a folder and file shared access by everyone.

Thanks...

dam.

scott
05-24-2002, 06:25 AM
Rmtshare is a NT 4.0 resource kit tool. All of my machines are Windows NT 4.0 or Windows 2000. Hope this helps.


The following script creates the SOLID share. hstfls is a list of computernames.
@echo off
for /f %%I in (hstfls) do call :MakeShare %%I
goto :EOF
:MakeShare
echo %1
rmtshare \%1solid3=E:solid3 /REMARK:"Solid 3.0 Remote Share"
goto :EOF

The following script sets permisions on the cdrom share. hstfls is a list of computernames.

@echo off
for /f %%I in (hstfls) do call :SHARE %%I
goto :EOF

:SHARE
echo %1
rmtshare \%1cdrom /GRANT "DomainNamedomain admins":f
rmtshare \%1cdrom /GRANT DomainNameAccounting:f
rmtshare \%1cdrom /g everyone
goto :EOF


------------
damitchell at 5/23/2002 12:20:09 PM


My question to the forum is:

Can a file/folder that sits on multiple workstations be turned into a share at one time via a program. Or, will I have to open every workstation as the administrator and share the files/folder individually.

If this can be done swiftly, please explain how. Also, can I set the permissions on the files also when doing this process. I have about 150 - 200 workstations that need a folder and file shared access by everyone.

Thanks...

dam.