Need to set the ACL

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Don Jones Don Jones 3 years, 7 months ago.

  • Author
  • #11463
    Profile photo of Biswajit

    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

  • #11529
    Profile photo of Don Jones
    Don Jones

    Read the help files for Get-ACL and Set-ACL.

You must be logged in to reply to this topic.