rmtshare does what you need.
You'll need to script it yourself.

OTTOMH
if you build a file (Perms.lst) like so:
server share user perm

eg:
zeus mechanical machinist C
zeus mechanical foreman F

You can use:
for /F "tokens=1,2,3,4" %k in (perms.lst) do rmtshare \\%k\%l /G %m:%n

when you run it, it will run rmtshare once for each line in the file.

I've used this to re-create shares when changing servers.

Under the heading "There MUST be a better way" check out subinacl.

Both are command line utils from the W2K and NT4 reskits.

Bruce MacDonald
Manager, Information Technology
Pacific Newspaper Group (Kennedy Heights)
(604) 605-7269 ph
(604) 605-7239 fax
[EMAIL PROTECTED]



-----Original Message-----
From: fred [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 12:41
To: MSWinNT Discussions
Subject: RE: Replace Share permissions


permissions on multiple shares at once?
Thanks

------
You are subscribed as [EMAIL PROTECTED]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

------
You are subscribed as [email protected]
Archives: http://www.swynk.com/sitesearch/search.asp
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to