Answered by:
Command line to "add an user to an existing share"

Question
-
We have an existing Windows 2008 R2 server with shares, what is the easily method from the command line to add user accounts to an existing share? something like rmtshare.exe use to do.
Thanks in advanced
Wednesday, January 12, 2011 4:39 PM
Answers
-
Hi,
To modify share permission from command line or script, please try subinacl tool:
subinacl /share \\serverName\shareName /grant=everyone=r
SubInACL (SubInACL.exe)http://www.microsoft.com/downloads/en/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en
Regards
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Marked as answer by Mervyn Zhang Friday, January 14, 2011 3:02 AM
Thursday, January 13, 2011 2:37 AM
All replies
-
You really want to grant that user permissions for the NTFS folder that is the folder being shared. You dont really want to do any per user administration on the share - its an educated guess based on the limited information
www.msftmvp.com and VHD tools at www.VMUtil.comWednesday, January 12, 2011 7:37 PM -
At this point we are in the process of migrating to a new domain and we need to replace the share permissions. I agree we can re-visit your suggestion after we get through this migration process.Wednesday, January 12, 2011 7:41 PM
-
Hi,
To modify share permission from command line or script, please try subinacl tool:
subinacl /share \\serverName\shareName /grant=everyone=r
SubInACL (SubInACL.exe)http://www.microsoft.com/downloads/en/details.aspx?FamilyID=E8BA3E56-D8FE-4A91-93CF-ED6985E3927B&displaylang=en
Regards
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.- Marked as answer by Mervyn Zhang Friday, January 14, 2011 3:02 AM
Thursday, January 13, 2011 2:37 AM -
Thank you very much as I tested this and it works like a champ. I just did not know if subinacl was compatible with windows 2008 r2.Thursday, January 13, 2011 12:19 PM
-
Glad to hear the suggestions worked. If you have more questions in the future, you’re welcomed to this forum.
Thanks
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.Friday, January 14, 2011 3:01 AM