Friday, April 22, 2011

Backup and Restore NTFS and Share Permissions

We are in the process of migrating/upgrading our File and Application servers to Windows Server 2008r2.  Virtualization has really done away with hardware migration issues, but we still have to worry about OS and Application specific settings.

One task that is part of the server migration process is the backup and restore of the NTFS and Share permissions.  The Windows 2008 r2 server migration wizard facilitates the transfer of these settings, but I like to err on the side of caution and prefer to manually back them up. Share permissions are stored in the registry, so the backup of Share permissions is as easy as exporting a Registry Key.

Export the following reg key to a new file by right clicking on the Share reg Key and selecting Export.

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares

CommandLine:
reg export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares share.reg

To import by using the registry.exe, just double click on the reg key on the destination server.

CommandLin:
reg import share.reg

No comments:

Post a Comment