Create a folder and share with specific permissions via batch?

  • Thread starter Thread starter Jim Rodgers
  • Start date Start date
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)
 
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
 
Back
Top