Script to change permissions on multiple folder

Hi,

This script is used to change permissions or user rights on multiple folder for a particular user. The below script is to change permissions on multiple folders under a specific directory. You can save a lot of time not to go manually and add the permission to each folder.

Note:Please run the script as system user

Please change the following parameter in the script based on your need.

path=“C:\Users\Win1032\Desktop\New folder (2)” #please provide the path to the directory or folder
user=“win1032” #please provide the username

permission=“F” #Please provide any one of the following permission rights

              #F - full access
              #M - modify access
              #RX - read and execute access
              #R - read-only access
              #W - write-only access
              #D - delete access

please refer the link: https://scripts.comodo.com/frontend/web/topic/script-to-change-permissions-on-multiple-folder

Thank you