New
#1
Help me to create 2 patch files to set permissions on all drives
I want to create a batch file to grant current user"Leprince2007" full access for all partitions "d-e-f-g-h"
I put this code in ".bat" file.Is this right?
I want to create another patch file to block guest from opening partition "D" and grant him read-only access for other partitions "e-f-g-h"Code:takeown /f D: /r /d y takeown /f E: /r /d y takeown /f F: /r /d y takeown /f G: /r /d y takeown /f H: /r /d y
I put this code in ".bat" file.Is this right?
Questions:Code:icacls D: /grant Guest:N /T icacls E: /grant Guest:R /T icacls F: /grant Guest:R /T icacls G: /grant Guest:R /T icacls H: /grant Guest:R /T
1-Please tell me if there is any mistakes in my codes
2-Will the batch files apply all codes ?
3-How can I run all the codes in the batch file at the same time?because every code takes a lot of time to accomplish the task
Last edited by leprince2007; 01 Mar 2018 at 01:21.