Link to home
Start Free TrialLog in
Avatar of rookie_b
rookie_bFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Backup NTFS Permissions of folders

How can I back up NTFS permissions of folders and sub-folders? I was thinking of using get-acl, but how do I store that output permanently to something that can later  be referenced as an -AclObject, should I want to restore them using set-acl?
Avatar of arnold
arnold
Flag of United States of America image

Avatar of rookie_b

ASKER

Thanks for getting back to me, Arnold!

I have looked at the link but it doesn't tell me how to actually save the acl as something I can use at a later point. The moment I close the window those variables and the ACLs saved in them will be gone.
ASKER CERTIFIED SOLUTION
Avatar of arnold
arnold
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks Shaun, this looks promising! I will review and test it and see how it goes.
Thank you for giving me the options and setting me on the right path.In the end I using get-acl and psobject to format the output into a csv, which now can then be used as an input to a set-acl script. The advantage of this is that I get I don't lose the variable when I close powershell, and also has the added benefit that I can review and change the permissions in excel before I set them.

Thanks you for all your help!