PC Review


Reply
Thread Tools Rate Thread

adding users to shares with scripting

 
 
William Hymen
Guest
Posts: n/a
 
      20th Oct 2004
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



 
Reply With Quote
 
 
 
 
Jerold Schulman
Guest
Posts: n/a
 
      20th Oct 2004
On Wed, 20 Oct 2004 06:14:19 -0400, "William Hymen" <(E-Mail Removed)> wrote:

>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
 
Reply With Quote
 
Oli Restorick [MVP]
Guest
Posts: n/a
 
      20th Oct 2004
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



"William Hymen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding users to shares with scripting William Hymen Microsoft Windows 2000 Security 1 20th Oct 2004 03:26 PM
WARNING - Ebay users using scripting John Smith Windows XP Internet Explorer 0 1st May 2004 07:56 AM
Adding users to a domain group via a tool or scripting... Dan Microsoft Windows 2000 Active Directory 3 19th Apr 2004 09:38 PM
Scripting the creation of shares Raymond Microsoft Windows 2000 Macintosh 2 17th Feb 2004 12:42 AM
Adding Users to Shares Daniel Letcher Windows XP Security 0 8th Sep 2003 05:54 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 AM.