Mit folgendem Powershell Sript von Johan Arwidmark lassen sich die Rechte für den Deploymentshare Ordner setzen und verwalten
# Check for elevation Write-Host "Checking for elevation" If ( -NOT ( [Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity] ::GetCurrent()).IsInRole(` [Security.Principal.WindowsBuiltInRole] "Administrator" )) { Write-Warning "Oupps, you need to run this script from an elevated PowerShell prompt!`nPlease start the PowerShell prompt as an Administrator and re-run the script." Write-Warning "Aborting script..." Break } # Configure NTFS Permissions for the MDT Build Lab deployment share $DeploymentShareNTFS = "E:\MDTBuildLab" icacls $DeploymentShareNTFS /grant '"Benutzer":(OI)(CI)(RX)' icacls $DeploymentShareNTFS /grant '"Administratoren":(OI)(CI)(F)' icacls $DeploymentShareNTFS /grant '"SYSTEM":(OI)(CI)(F)' icacls "$DeploymentShareNTFS\Captures" /grant '"LABOR\MDT_BA":(OI)(CI)(M)' # Configure Sharing Permissions for the MDT Build Lab deployment share $DeploymentShare = "MDTBuildLab$" Grant-SmbShareAccess -Name $DeploymentShare -AccountName "JEDER" -AccessRight Change -Force Revoke-SmbShareAccess -Name $DeploymentShare -AccountName "ERSTELLER-BESITZER" -Force |