Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 616 Bytes

File metadata and controls

15 lines (14 loc) · 616 Bytes

A practical interlude

  1. Create a directory called LABS and share it, make sure that the share permissions are set so that Everyone has read/write access, and local Administrators have full control. Set the caching mode for documents since this is for file primarily.
new-item -ItemType Directory C:\Users\martin\Desktop\LABS | Out-Null
Import-Module SmbShare
$sharefolder = New-SmbShare -Name LABS -Path C:\Users\martin\Desktop\LABS -ChangeAccess Everyone -FullAccess Administrators -CachingMode Documents
$sharefolder | Get-SmbShareAccess