New-Item `
-ItemType Directory `
-Name "dossier56" `
-Path e:\

New-SmbShare `
-Name "partage56" `
-FullAccess "everyone" `
-Path "E:\dossier56" `
-CachingMode None `
-FolderEnumerationMode AccessBased `
-EncryptData $true

Install-Module -Name NTFSsecurity

Disable-NTFSAccessInheritance `
-Path E:\dossier56

Remove-NTFSAccess `
-Path E:\dossier56 `
-Account users `
-AccessRights FullControl

Remove-NTFSAccess `
-Path E:\dossier56 `
-Account administrators `
-AccessRights FullControl

Add-NTFSAccess `
-Path E:\dossier56 `
-Account direction `
-AccessRights Modify

