top of page

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

Jun 24, 2017
1 min read

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


In 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

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page