Create a folder and share with specific permissions via batch?

J

Jim Rodgers

How (via command line or batch) can I share a specific folder and assign
specific permissions, assuming I know the domain user ID that is to have
full access to the share?

Thanks!

Jim Rodgers
(e-mail address removed)
 
T

Torgeir Bakken (MVP)

Jim said:
How (via command line or batch) can I share a specific folder and assign
specific permissions, assuming I know the domain user ID that is to have
full access to the share?

Hi

Create the share:

net share /?


and to set permissions, you can use setacl.exe:


SetACL.exe: SetACL - Windows permission management: Set permissions on
virtually anything
http://setacl.sourceforge.net/

SetACL can set permissions on:

Local or remote directories
Local or remote files
Local or remote printers
Local or remote registry keys
Local or remote Win32 services
Local or remote network shares
 

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