General discussion


Restoring NTFS Permissions

By trautmann ·
One of our admins changed the NTFS permissions on our INETPUB directory. The big mistake was that he filtered the change down to every sub-directory! It affected a hundred or so directories that had individual NTFS permission settings. I spent hourstrying to change them back.
Is there a way I can save NTFS permissions and also restore them if need be?
After some research, I found I could do this for share permissions by saving a Registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares). Anything similar for NTFS permissions?
I want to avoid this in the future. It cost me hours of valuable time. Any suggestions?

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

No easy answer

by aclopez5 In reply to Restoring NTFS Permission ...

NTFS perms aren't stored in the registry, so you can't find them there. You can use CACLS or XCACLS and pipe the result to a text file so at least you have a record of the what the perms where.

A few years ago, I ran into the same situation. I renamed the existing directory to something else. I then restored the directory structure from backup to it's original location (which also restore the NTFS perms). I then copied (not moved- very important) the files back to their original locations.

Related Discussions

Related Forums