You are on page 1of 7

9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials

User Name Password Log in Register


Remember Me?

What's New? Forum Tutorials News Join Us Search..

FAQ Tutorial Index Advanced Search

 Forum  Windows 10 Forums  Tutorials 

0% Deposit - From
R2,599pm
Drive A 2019 Polo Vivo From
R2.599pm With 0% Deposit & 0%
McCarthyVW.co.za Balloon. Easy Online Enquiry

Backup and Restore Permissions of File, Folder, or Drive in Windows


How to Backup and Restore Permissions of Files, Folders, or Drives in Windows
Published by Shawn Brink Category: Backup & Restore
08 Jun 2018

How to Backup and Restore Permissions of Files, Folders, or


Drives in Windows

On NTFS and ReFS volumes, you can set security permissions on les and folders. These permissions grant
or deny access to the les and folders.

Every container (ex: folder) and object (ex: le) on the PC has a set of access control information attached
to it. Known as a security descriptor, this information controls the type of access allowed to users and
groups. The security descriptor is automatically created along with the container or object that is created.

When you are a member of a group (ex: "Administrators") that is associated with an object, you have some
ability to manage the permissions on that object. For those objects you own, you have full control.

Permissions are de ned within an object's security descriptor. Permissions are associated with, or
assigned to, speci c users and groups. For example, for the le Temp.dat, the built-in Administrators
group might be assigned Read, Write, and Delete permissions, while the Backup Operators group might
be assigned Read and Write permissions only.

Each assignment of permissions to a user or group is represented in the system as an access control entry
(ACE). The entire set of permission entries in a security descriptor is known as a permission set or access
control list (ACL). Thus, for a le named Temp.dat, the permission set includes two permission entries, one
for the built-in Administrators group and one for the Backup Operators group.

There are two types of permissions: explicit permissions and inherited permissions.
Explicit permissions are those that are set by default on non-child objects when the object is created,
or by user action on non-child, parent, or child objects.
See also: Change Permissions of File, Folder, Drive, or Registry Key for Users and Groups in
Windows 10
Inherited permissions are those that are propagated to an object from a parent object. Inherited
permissions ease the task of managing permissions and ensure consistency of permissions among all
objects within a given container.
Inherited Deny permissions do not prevent access to an object if the object has an explicit Allow
permission entry.
Explicit permissions take precedence over inherited permissions, even inherited Deny
permissions.

By default, objects within a container inherit the permissions from that container when the objects are ✖
created. For example, when you create a folder called MyFolder, all subfolders and les created within
MyFolder automatically inherit the permissions from that folder. Therefore, MyFolder has explicit
permissions, while all subfolders and les within it have inherited permissions.

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 1/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials

Substitute Full path of folder in the command above with the actual full path of the folder you
want to back up the permissions of this folder only.

If you like, you can substitute MyPermissions in the command above with the name you want
for the text le instead. This can make it easier to know what the .txt le is the backup for.

For example:
icacls "F:\MyFolder" /save "%UserProfile%\Desktop\MyPermissions.txt"

5. Backup permissions of a folder, subfolder and files

A) Type the command below into the elevated command prompt, press Enter, and go to Step 7.

icacls "Full path of folder" /save "%UserProfile%\Desktop\MyPermissions.txt" ,t ,c

Note

Substitute Full path of folder in the command above with the actual full path of the folder you
want to back up the permissions of this folder, subfolders and les.

If you like, you can substitute MyPermissions in the command above with the name you want
for the text le instead. This can make it easier to know what the .txt le is the backup for.

For example:
icacls "F:\MyFolder" /save "%UserProfile%\Desktop\MyPermissions.txt" /t /c

6. Backup permissions of a drive, subfolder and files

A) Type the command below into the elevated command prompt, press Enter, and go to Step 7.

icacls "Drive letter:\*" /save "%UserProfile%\Desktop\MyPermissions.txt" ,t ,c

Note

Substitute Drive letter in the command above with the actual drive letter you want to back up
the permissions of this drive, subfolders and les.

If you like, you can substitute MyPermissions in the command above with the name you want
for the text le instead. This can make it easier to know what the .txt le is the backup for.

For example:
icacls "F:\*" /save "%UserProfile%\Desktop\MyPermissions.txt" /t /c

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 3/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials
In Windows, you can back up the current permissions of a le, folder, or drive to a .txt le, and be able to
restore the permissions later if needed.
GET PROBLEM
This tutorial will show you how to backup and restore permissions for les, folders, and drives in Windows FREE PAYROLL
7, Windows 8, and Windows 10. TODAY
While you must be signed in as an administrator to backup and restore permissions.

CONTENTS:

Option One: To Backup Permissions of File, Folder, or Drive in Command Prompt


Option Two: To Restore Permissions of File, Folder, or Drive in Command Prompt

OPTION ONE
To Backup Permissions of File, Folder, or Drive in Command Prompt

1. Open an elevated command prompt.

2. Go the step below you want to do:


Step 3: Backup permissions of a le
Step 4: Backup permissions of a folder
Step 5: Backup permissions of a folder, subfolder and les
Step 6: Backup permissions of a drive, subfolder and les

3. Backup permissions of a file

A) Type the command below into the elevated command prompt, press Enter, and go to Step 7.

icacls "Full path of file" /save "%UserProfile%\Desktop\MyPermissions.txt"

Note

Substitute Full path of le in the command above with the actual full path of the le with
extension you want to back up the permissions of this le only.

If you like, you can substitute MyPermissions in the command above with the name you want
for the text le instead. This can make it easier to know what the .txt le is the backup for.

For example:
icacls "F:\MyFolder\Lock.png" /save "%UserProfile%\Desktop\MyPermissions.txt"

4. Backup permissions of a folder

A) Type the command below into the elevated command prompt, press Enter, and go to Step 7.

icacls "Full path of folder" /save "%UserProfile%\Desktop\MyPermissions.txt" ✖

Note

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 2/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials

7. You will now have a MyPermissions.txt le saved to your desktop that is the permissions backup of the le, folder, or drive.
You can move this text le to where you would like to keep it saved at.

8. When nished, you can close the elevated command prompt if you like.

OPTION TWO
To Restore Permissions of File, Folder, or Drive in Command Prompt

1. Open an elevated command prompt.

2. Go the step below you want to do:


Step 3: Restore permissions of a le from backup
Step 4: Restore permissions of a folder from backup
Step 5: Restore permissions of a drive from backup

3. Restore permissions of a file from backup

A) Type the command below into the elevated command prompt, press Enter, and go to Step 6.

icacls "Back one path from full path of file" /restore "Full path of MyPermissions.txt file"

Note

Substitute Back one path from full path of le in the command above with the actual same
full path of the le from the backup (ex: "F:\MyFolder\Lock.png"), but back one path (ex:
"F:\MyFolder").

Substitute Full path of MyPermissions.txt le in the command above with the actual full path
of the text le with le extension created from step 3 in Option One.

For example:
icacls "F:\MyFolder" /restore "%UserProfile%\Desktop\MyPermissions.txt"

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 4/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials

4. Restore permissions of a folder from backup

A) Type the command below into the elevated command prompt, press Enter, and go to Step 6.

icacls "Back one path from full path of folder" /restore "Full path of MyPermissions.txt file"

Note

Substitute Back one path from full path of folder in the command above with the actual same
full path of the folder from the backup (ex: "F:\MyFolder"), but back one path (ex: "F:").

Substitute Full path of MyPermissions.txt le in the command above with the actual full path
of the text le with le extension created from step 4 in Option One or step 5 in Option One.

For example: icacls "F:" /restore "%UserProfile%\Desktop\MyPermissions.txt"

5. Restore permissions of a drive from backup

A) Type the command below into the elevated command prompt, press Enter, and go to Step 6.

icacls "Back one path from full path of drive" /restore "Full path of MyPermissions.txt file"

Note

Substitute Back one path from full path of drive in the command above with the actual same
full path of the folder from the backup (ex: "F:\*"), but back one path (ex: "F:").

Substitute Full path of MyPermissions.txt le in the command above with the actual full path
of the text le with le extension created from step 6 in Option One.

For example: icacls "F:" /restore "%UserProfile%\Desktop\MyPermissions.txt"

6. When nished, you can close the elevated command prompt if you like.

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 5/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials
That's it,
Shawn

 Related Tutorials

Change Permissions of File, Folder, Drive, or Registry Key for Users How to Change Owner of File, Folder, Drive, or Registry Key in
and Groups in Windows 10 Windows 10
Enable or Disable Inherited Permissions for Files and Folders in How to Add Advanced security to context menu in Windows 8 and
Windows Windows 10
How to Add Inherited Permissions Context Menu in Windows How to Add or Remove Users from Groups in Windows 10
How to Add List Permissions Context Menu in Windows How to Remove Security tab from Drives, Files, and Folders
How to Add Reset Permissions to Context Menu in Windows Properties in Windows 10
How to Add View Owner to Context Menu in Windows How to Backup and Restore Network Shares and Permissions in
How to Add Take Ownership to Context Menu in Windows 10 Windows

Pay 1st Instalment


In Jan 2021

Get A New Polo Vivo Today &


We Will Pay Your Instalments
Until Jan 2021. Enquire Online
McCarthyVW.co.za

 Subscribe to Thread

Tutorial Categories

Related Threads

Backup & Restore Backup and Restore Folder View Settings in Windows 10 in Tutorials
How to Backup and Restore Folder View Settings in Windows 10 In Windows, you can change the template, column
width, Group by, Sort by, and layout view of the content of your folders to how you like. This tutorial will show you
how to...

How to ensure drive/folder/ le permissions are correct? in User Accounts and Family Safety
I have: Drive 1 - SSD (boot) Drive 2 - HDD (storage) Drive 3 - HDD (storage) Drive 4 - External HDD (storage)

Restore ALL les from le backup (Windows 10) in Backup and Restore

So I just got a new computer, and I'm attempting to migrate all my les from the old computer's hard drive to the
https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 6/7
9/18/2020 Backup and Restore Permissions of File, Folder, or Drive in Windows | Tutorials
So I just got a new computer, and I m attempting to migrate all my les from the old computer s hard drive to the
new one. So I'll list what I have tried so far: System Image Backup: I made a system image backup of my old hard
drive using...

 Moved Documents folder to enter drive, not folder. Can't restore. in Backup and Restore
I did a fresh install of Win10 on an SSD and was in the process of moving the Documents folder to a separate HDD
(F drive) using the 'Move to' option but I selected just the F: drive instead of a new Documents folder. When I tried
to move again to...

Backup & Restore Backup and Restore Quick Access Toolbar in Windows 10 File Explorer in Tutorials
How to Backup and Restore Quick Access Toolbar in Windows 10 File Explorer The Quick Access Toolbar (QAT) is a
small, customizable toolbar that exposes a set of Commands that are speci ed by the application or selected by the
user. After you...

Our Sites Site Links About Us Find Us

Vista Forums Contact Us Windows 10 Forums is an independent web site and has not
Eight Forums Privacy and Cookies been authorized, sponsored, or otherwise approved by Microsoft 
Seven Forums Terms of service Corporation. "Windows 10" and related materials are trademarks
of Microsoft Corp.

© Designer Media Ltd


All times are GMT -5. The time now is 02:11.

https://www.tenforums.com/tutorials/88599-backup-restore-permissions-file-folder-drive-windows.html 7/7

You might also like