set xfold=E:\Staff\ECE
set xname=%1
set pass=%2
net user %xname% %pass% /add /domain
md %xfold%\%xname%
rmtshare \\srvname\%xname%$=%xfold%\%xname% /USERS:3 /GRANT "domain\username":F /GRANT %xname%:C
echo Y |cacls %xfold%\%xname% /E /R Everyone /P Administrator:F %xname%:C
No comments:
Post a Comment