Adding permissions to folders on different clients

haydentleon-6252 285 Reputation points
2025-03-24T14:46:07.88+00:00

How can I add different user permissions to the folders on different clients? This is part of our office automation. Can configuration manager do this in bulk? Any assistance would be greatly appreciated.

Microsoft Configuration Manager Deployment
Microsoft Configuration Manager Deployment
Microsoft Configuration Manager: An integrated solution for for managing large groups of personal computers and servers.Deployment: The process of delivering, assembling, and maintaining a particular version of a software system at a site.
1,064 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Simon Ren-MSFT 40,406 Reputation points Microsoft External Staff
    2025-03-25T01:52:57.97+00:00

    Hi,

    Hope everything is going well.

    There's nothing built- into SCCM to control file or folder permissions on managed devices. However, you can easily create a PowerShell script to do this and push this out using SCCM. Alternatively, you can create a package and program in SCCM that runs commands that configure permissions on files and folders.

    For example, the PowerShell "set-acl" cmdlet is used to change the security descriptor of a specified item, such as a file, folder or a registry key; in other words, it is used to modify file or folder permissions. The following script sets the "FullControl" permission to "Allow" for the user "UserA" to the folder "FolderX":

    $acl = Get-Acl \fs1\shared\FolderX

    $AccessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("UserA","FullControl","Allow")

    $acl.SetAccessRule($AccessRule)

    $acl | Set-Acl \fs1\shared\folder1

    We could modify the example and deploy it as package to the clients, and about the detail of how to manage file system ACLs with PowerShell Scripts, please refer to this article:

    https://blog.netwrix.com/2018/04/18/how-to-manage-file-system-acls-with-powershell-scripts/

    Note: Non-Microsoft link, just for your reference.

    Hope it helps. Thanks for your time.

    Best regards,

    Simon


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable email notifications if you want to receive the related email notification for this thread.

    After the way you tag questions on Q&A is updated, for any "Microsoft Configuration Manager" related problem, you can tag it with "Microsoft Intune", and then "Microsoft Configuration Manager" as the child tag.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.