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, 5 months ago.

  • Author
    Posts
  • #11463
    Profile photo of Biswajit
    Biswajit
    Participant

    Need to set the ACL. Only that user should have full control for his foledr & all deny.

    —–SCRIPT——

    $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
    Keymaster

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

You must be logged in to reply to this topic.