Link to home
Start Free TrialLog in
Avatar of fselliott
fselliottFlag for United States of America

asked on

setting permissions via a dos script

How do include code in my script a command line that will set permissions on a folder that I have just created using:

 mkdir  \\fse-vantage\epicor\mfgsysdata\reports\%username%

I would like for each user to be able to log into the system and run the script to create a folder for them and assign full permissions to the folder under their username.

thank you!
ASKER CERTIFIED SOLUTION
Avatar of tigermatt
tigermatt
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fselliott

ASKER

How do I add the "domain admin" user into the script to provide permissions for it also?
Grading Comment: > How do I add the "domain admin" user into the script to provide permissions for it also?

Simple.

cacls \\fse-vantage\epicor\mfgsysdata\reports\%username% /G "DOMAIN\Domain Admins":F

Replace DOMAIN with the name of your Active Directory domain.

-tigermatt