I have absolutely no idea on scripting so im really sorry for this post.
All i want to do is create a folder on a share and give it specific permissions. When I run the script manually either in a .bat file or whatever is easiest I want it to prompt me for a specific username and after i enter the username I pusk enter and it goes away and creates the folder and sorts out the specific permissions on the share...I have been given the following scripts which im told will do this individually. So how can i combine them? I just want to enter the username name in once...Thanks very very much
Script to make folders
md \\filesrv1\email\USERNAME| md \\filesrv1\email\USERNAME\outlook| md \\filesrv1\email\USERNAME\notes
Script to set permissions on top level folder to Domain Admins and System only
echo y|cacls \\filesrv1\email\USERNAME /S:"D:PAI(A;OICI;FA;;;SY)(A;OICI;FA;;;DA)"
Script to add change permissions for user to each folder
cacls "\\filesrv1\email\USERNAME\notes" /G "TENNIS\USERNAME":C /E|cacls "\\filesrv1\email\USERNAME\outlook" /G "TENNIS\USERNAME":C /E|cacls "\\filesrv1\email\USERNAME" /G "TENNIS\USERNAME":C /E