23 lines
452 B
PowerShell
23 lines
452 B
PowerShell
# Define the array of folders
|
|
$folders = @(
|
|
"AlplaBasis",
|
|
"AlplaBudget",
|
|
"AlplaINVOICE",
|
|
"AlplaLabel",
|
|
"AlplaOrder",
|
|
"AlplaPlanning",
|
|
"AlplaPurchase",
|
|
"AlplaStock",
|
|
"PDF24",
|
|
"Module shortcuts"
|
|
)
|
|
|
|
# Set permissions using icacls
|
|
$permissions = "Everyone:(OI)(CI)F"
|
|
|
|
# Loop through each folder and set permissions
|
|
foreach ($folder in $folders) {
|
|
$folderPath = "C:\Sources\AlplaPROD\$folder"
|
|
icacls $folderPath /grant $permissions /t /c /q
|
|
}
|