Need to set the ACL

Welcome Forums General PowerShell Q&A Need to set the ACL

This topic contains 1 reply, has 2 voices, and was last updated by

 
Keymaster
5 years, 1 month ago.

  • Author
    Posts
  • #11463

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 1,704
    Helping HandTeam Member
    Rank: Community Hero

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

The topic ‘Need to set the ACL’ is closed to new replies.