This script is used to change permissions or user rights on multiple folder for a particular user. The below script is to change the permissions on multiple folders under a specific directory. You can save a lot of time not to go manually and add the permission for 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 following wikitopic on how to edit parameters and run the procedure in ITSM.
Please run the script as system user