fselliott
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\mfgsy sdata\repo rts\%usern ame%
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!
mkdir \\fse-vantage\epicor\mfgsy
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Grading Comment: > How do I add the "domain admin" user into the script to provide permissions for it also?
Simple.
cacls \\fse-vantage\epicor\mfgsy sdata\repo rts\%usern ame% /G "DOMAIN\Domain Admins":F
Replace DOMAIN with the name of your Active Directory domain.
-tigermatt
Simple.
cacls \\fse-vantage\epicor\mfgsy
Replace DOMAIN with the name of your Active Directory domain.
-tigermatt
ASKER