Badgerati / Fogg

PowerShell tool to aide and simplify the creation, deployment and provisioning of infrastructure in Azure
MIT License
7 stars 2 forks source link

New inbuilt custom script for altering file/folder permissions #48

Closed Badgerati closed 7 years ago

Badgerati commented 7 years ago

It would be useful to have an inbuilt custom provisioning script that would help to alter permissions on files and folders.

The script should accept arguments of path, user, access-level and allow/deny. This way the script can be called multiple times on a single VM template, just with different parameters.

Badgerati commented 7 years ago

Example of passing in parameters, and allowing the BUILTIN\IIS_IUSRS users access to a C:\Websites directory:

"provisioners": [
    "access: C:\\Websites | BUILTIN\\IIS_IUSRS | FullControl | Allow"
]
Badgerati commented 7 years ago

New custom script is called file-access