https://support.microsoft.com/en-us/kb/295622I am on computer A running Win server 2012. There is a folder on 38 other computers (B1, B2, B3, ..., B38 - each running Win 7) that I want to share. Isn't there a command line command I can run from computer A that will share the folders on computers B1, B2, etc.?
I have done this before but it's been over a year and I can't remember how I did it. I think it might've been icacls or subinacl, but I tried both and neither worked. But I might not be putting in the right command-line arguments.
Also, would the account running the program need to be a domain administrator?
Clarification edit: The folder I want to share is on the REMOTE computer, not the local computer. I want to use the local computer to share the folder on the remote computer. I know you can use WMIC to do it (https://support.microsoft.com/en-us/kb/295622 - just change the node to remote IP), but WMIC can only make the folder shared. It won't let you change the permissions on the folder once it's shared, which is kind of pointless. I'm sure I used either icacls or subinacl before, but they don't work now. The account I used before was a domain admin, but I can't access that one now. I don't know if that matters.