Q:

command to add permissions to a folder for a local user in windows server 2008

as part of an installer I need to create a user with limited permissions
to add the user I will use
net user "<username>" <password> /add /fullname:"<username>"

I now need to explicitly add read and write permissions to a specific folder assigned for ftps for this user, how can this be done as part of a script that can be invoked by the installer? if at all possible I need to avoid adding additional dependencies like powerscript.

A:

ICACLS C:\FTPS_FOLDER /grant USERNAME:(OI)(CI)M
will give you what you are after.

