Hi folks,
I need to grant some permissions on a folder, I use
Code: Select all
> "!TMP!\j.TMP" (
echo.!"!echo.j!"!
echo.!"!echo.y!"!
)
for %%? in (
Administrators
) do < "!TMP!\WorkF.TMP" cacls "!$installPath!" /t /e /c /p "%%~?":F
for %%? in (
Hoofdgebruikers, Gebruikers, Gasten
) do < "!TMP!\WorkF.TMP" cacls "!$installPath!" /t /e /c /p "%%~?":R
I was also thinking of using the result of the net localgroup command, but it's a bad candidate, as it also display;
back-upoperators, helpservicesGroup etc..