In this article we see about automate the process of sharing new folders by using PowerShell.
You can automate the process of sharing new folders using PowerShell 3.0 . For example, To create and share folder,
We could use the following commands in PowerShell,
New-SMBShare -Name ITDocuments -Path D:\Shares\ITDocuments -FolderEnumerationMode AccessBased
-CachingModeITDocuments -EncryptData $True -FullAccess Everyone