How to backup and restore NTFS permissions of shared folder

How to backup and restore NTFS permissions of shared folder


1) Map shared drive to your computer/server (e.g. Z)
2) Open command prompt
3) go to shared drive (z:)
4) run command "ICACLS Z:\* /save filename /T"
replace filename with name of file which you would like to give to save permissions
this command will save permissions of files and sub folders inside share
5) to restore permissions run command "ICACLS Z:\ /restore filename"
replace filename with name of file that you used during backup


Comments

Post a Comment