September 8, 2016

HOW TO BACKUP AND RESTORE NTFS AND SHARED FOLDER PERMISSIONS



HOW TO BACKUP AND RESTORE NTFS AND SHARED FOLDER PERMISSIONS

To backup & restore NTFS permission you will find many utilities like NTBACKUP,  iCacls, Robocopy and FSMT.
Backup and Restore of Shared Permissions:
Generally, shared folder permissions are stored in registry at the following location.
HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares,
you need to backup and restore this key values using export and import options.
Step 1: Open the registry ( Run | Regedit.exe )
Step 2: Navigate to the following location:
 HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares
Step 3: Right Click on Shares Registry key in the Left pane, from context menu select Export.
Step4: Give the filename as shareperms.reg

When you want to restore the permissions, copy shareperms.reg file and paste to another server where you want to restore and then double click on that file to import.

USING COMMAND LINE UTILITY.
reg export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares c:\shareperms.reg
If you need to restore, copy and paste the file to C: location, just run:
reg import c:\shareperms.reg

Note: After restore you need to restart the Server service.
net stop lanmanserver
net start lanmanserver

BACKUP AND RESTORE OF NTFS PERMISSIONS

If your are using NTBackup to restore the data, you should select the checkbox to restore permissions as well.
Using icacls command to backup NTFS permissions:
icacls d:\sharedata /save ntfsperms.txt /t /c
The /T switch allows it to get subfolder permissions too. The /C switch allows it to continue even if errors are encountered (although errors will still be displayed).
Use this command to restore them:
icacls d:\ /restore ntfsperms.txt


Related Posts:

  • Quản lý Hyper-V 2012R2: Phần 1 Tuhocmang – Như đã biết, Hyper-V 2012R2 có rất nhiều cải tiến, có thể cạnh tranh trực tiếp với VMware Vsphere. Một trong những cải tiến nổi bật của nó là Máy ảo thế hệ 2. Máy ảo thế hệ 2 Hyper-V 2012R2 hỗ trợ 2 loại máy ảo… Read More
  • Thay đổi Port (cổng) Remote desktop trong Windows Chúng ta có thể thay đổi Port remote desktop cho Windows XP, Windows Server 2003, 2008, Windows7 thay vì sử dụng port 3389 theo mặc định. Việc thay đổi port sẽ tăng cao tính bảo mật và cá nhân hóa cho người dùng hơ… Read More
  • Cài đặt Hyper-V 2012R2 Tuhocmang – Để cài đặt HYperV thì CPU phải hỗ trợ công nghệ ảo hóa (Intel-VT hoặc AMD-V) Để kiểm tra CPU có hỗ trợ hay không các bạn vào đây để tham khảo bài viết. Yêu cầu phần cứng tối thiểu của Hyper-V 2012R2 … Read More
  • Đồng bộ hóa dữ liệu trên 2 Server sử dụng DFS Replication Mô hình thiết lập hai Domain Controller chạy song song, đồng thời cũng là 2 file server có khả năng đồng bộ hóa dữ liệu cho nhau. Khi một trong 2 File Server chết, thì Server kia sẽ tiếp tục giữ kết nối với client, đảm bảo d… Read More
  • Tự học MCSA 2012 Cách sử dụng Hyper-V để làm lab Như các bạn đã biết thì Hyper-V, chương trình tạo máy ảo, được Microsoft tích hợp miễn phí vào HDH Windows 8 phiên bản pro trở lên.  Để cài đặt Hyper-V thì CPU phải hỗ trợ công nghệ ảo hóa. Nếu CPU của bạn là Intel &nb… Read More

0 comments:

Post a Comment