Part 2:How can I automate the process of sharing new folders in Server 2016?

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,
MD E:\Shares\ITDocuments

New-SMBShare -Name ITDocuments -Path D:\Shares\ITDocuments -FolderEnumerationMode AccessBased
-CachingModeITDocuments -EncryptData $True -FullAccess Everyone

1In addition to the new SMB Share Cmdlets, you can also use the Set-Acl and Get-Acl PowerShell cmdlets for automating NTFS folder permissions.
Use can see share folder in Local disk.
2

 

Author Bio

Vetrivel Madeswaran

Leave a Reply

Your email address will not be published. Required fields are marked *