Welcome › Forums › General PowerShell Q&A › Need to set the ACL
This topic contains 1 reply, has 2 voices, and was last updated by
Need to set the ACL. Only that user should have full control for his foledr & all deny.
$Users = Get-Content "Users.txt"
ForEach ($user in $users)
$newPath = Join-Path "\\WIN-85IOGS94Q68\netshare$\" -childpath $user
New-Item $newPath -type directory
Read the help files for Get-ACL and Set-ACL.
The topic ‘Need to set the ACL’ is closed to new replies.