adding users to shares with scripting

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
 
J

Jerold Schulman

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
 
O

Oli Restorick [MVP]

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
 

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