I automate

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

#FilePermissions #NTFS

Author

Leave a comment

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