Sunday, August 19, 2012 5:07 AMhow to give authenticated users permission for a shared folder through command line syntax.
Sunday, August 19, 2012 9:23 AM
First create a share with the name of folder as test1 in E drive(example) and use net share command to share a folder & give proper permissions.
net share test1=E:\test1/GRANT:domain\username,full ==>share the folder using net share command
for more details about net share command, you can refer:http://technet.microsoft.com/en-us/library/hh750728(v=ws.10)
Regards, Ravikumar P
Monday, August 20, 2012 10:22 AMModerator
If you want to set permissions for a shared folder via command line, I suggest we could use cacls command. For details, please refer to the article below.
To specify file permissions for a user by using a command line
Also we could achieve the target via PowerShell. Please try to refer to the article below.
How to Handle NTFS Folder Permissions, Security Descriptors and ACLs in PowerShell
If we have some PowerShell related issue, I suggest we could ask in the script forum.
The Official Scripting Guys Forum!
- Proposed As Answer by Santosh BhandarkarMicrosoft Community Contributor, Moderator Monday, August 20, 2012 4:31 PM
- Marked As Answer by Andy QiMicrosoft Contingent Staff, Moderator Tuesday, August 28, 2012 7:23 AM