Share Folders/External Drives with CMD

share

Yesterday we had a problem regarding sharing. We needed to share an encrypted drive to be accessed from other computers. To share a folder or any drive, you would normally

  • go to the folder/drive to be shared
  • right click
  • select properties
  • select the “Sharing” tab
  • Click “Advanced Sharing”
  • Check Share this folder
  • Click the “Permissions” button
  • Change Permissions as needed

But we had a problem. Encrypted drives or any other External Drives, when removed or a user logs off the system, the sharing properties and any others are lost and defaults are loaded again. So we didn’t want that the user would have to go through all the previous steps to share a drive or folder.

So this is the solution we found! Continue reading