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

5 years, 5 months ago.

  • Author
  • #11463

    Points: 0
    Rank: Member

    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

    Points: 1,811
    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.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort