adding users to shares with scripting

  • Thread starter Thread starter William Hymen
  • Start date Start date
W

William Hymen

I have users on two Win2k servers on active directory.
On each system, I need to create NTFS folder shares and add
the users to the share *and* to the directory folder as either
read+execute or read+write+execute.

I need a script which will permit me to add users to
shares with specified permissions. My only scripting requirement
is that it be command-line only. No vbs pop-ups.
This is because I need to do this over telnet or ssh in a
22x80 command prompt window.

Thanks in advance-

Bill
 
I have users on two Win2k servers on active directory.
On each system, I need to create NTFS folder shares and add
the users to the share *and* to the directory folder as either
read+execute or read+write+execute.

I need a script which will permit me to add users to
shares with specified permissions. My only scripting requirement
is that it be command-line only. No vbs pop-ups.
This is because I need to do this over telnet or ssh in a
22x80 command prompt window.

Thanks in advance-

Bill
rmtshare, tip 6353 in the 'Tips & Tricks' at http://www.jsiinc.com
subinacl, tip 8530.


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Jerold has a good answer, but I always question the need to do this. What
you are suggesting should only be necessary if you have Windows 95/98/NT4
clients on your network.

Windows 2000 and above can map to a folder beneath a share. For example:

net use h: \\server\users\fred

Creating individual shares is a huge burden.

Regards

Oli
 
Back
Top