Remove File Permissions
Remove permissions from a file
Parameters
Section titled “Parameters”File path
Section titled “File path”Required
The full path of the file - ex. C:\Program Files\Common Files
User or group
Section titled “User or group”Required
The user or group to remove permissions for - ex. Domain\User or $env:COMPUTERNAME\LocalGroupName or S-1-5-32-544 or BUILTIN\Users. Please add only one user or group.
Require File To Exist
Section titled “Require File To Exist”Optional — Default: False
Enable to stop with an error when the file does not exist. Disable to skip the brick without an error when the file is missing.
Details
Section titled “Details”- Category: Permissions
- Brick ID:
File-Remove-Permission
Raw JSON definition
Section titled “Raw JSON definition”{ "category": "permissions", "description": "Remove permissions from a file", "developerVendor": "CapaSystems A/S", "displayName": null, "id": "File-Remove-Permission", "name": "Remove File Permissions", "parameters": [ { "allowManualInput": false, "defaultValue": "", "defaultValueObject": null, "description": "The full path of the file - ex. C:\\Program Files\\Common Files", "id": "Path", "name": "File path", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "allowManualInput": false, "defaultValue": "", "defaultValueObject": null, "description": "The user or group to remove permissions for - ex. Domain\\User or $env:COMPUTERNAME\\LocalGroupName or S-1-5-32-544 or BUILTIN\\Users. Please add only one user or group.", "id": "Identity", "name": "User or group", "regExValidation": "", "required": true, "type": "TextBox", "value": null, "values": [], "valuesObject": null }, { "allowManualInput": false, "defaultValue": "False", "defaultValueObject": null, "description": "Enable to stop with an error when the file does not exist. Disable to skip the brick without an error when the file is missing.", "id": "ShouldPathExist", "name": "Require File To Exist", "regExValidation": "", "required": false, "type": "Boolean", "value": null, "values": [], "valuesObject": null } ], "powershell": { "base64Encoded": true, "function": "ZnVuY3Rpb2..." }, "type": "powerbrick", "version": "2026.9.1.1"}