Question about giving modify access to a group on a specific directory in users

Welcome Forums General PowerShell Q&A Question about giving modify access to a group on a specific directory in users

Viewing 2 reply threads
  • Author
    Posts
    • #198872
      Participant
      Topics: 2
      Replies: 2
      Points: 15
      Rank: Member

      Dear forum members

      Let’s say i have a share

      \\shares\users\

      and every user has a directory \bin

      Now i want for every user  a group having modify access on that \\shares\users\bin

      What would be the best way to do this in powershell. These are a lot of users so i think i have to loop through the AD -> Company users and set the group rights.

      I hope you can help a bit. I use a lot of powershell, but i need some info on setting the NTFS permission the right way.

       

      Kind regards,

       

      Borgy

    • #199043
      Participant
      Topics: 12
      Replies: 1489
      Points: 1,987
      Helping Hand
      Rank: Community Hero

      There are many scripts and examples of setting permissions for home directories:

      https://gallery.technet.microsoft.com/scriptcenter/Reset-Home-Folder-Share-a4b42fc5

      You definitely should set up a test structure, create child objects and then try to use scripts to reset the permissions to ensure the parent and child objects have inherited the permissions.

    • #199433
      Participant
      Topics: 2
      Replies: 2
      Points: 15
      Rank: Member

      Thank you very much Rob, that gives me a good idea.

       

Viewing 2 reply threads
  • You must be logged in to reply to this topic.