You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: microsoft-365/archive/archive-manage.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,29 +72,27 @@ To control which sites can use file-level archive, admins have three PowerShell
72
72
73
73
1.**Tenant-level enablement**. To only utilize Site archive and not allow any user to archive files, disable file-level archive entirely for your tenant. This capability is controlled via the _**-AllowFileArchive**_ property flag of the _**Set-SPOTenant**_ cmdlet. This property will override the site-level property with the same name. This flag was introduced into SPO admin PowerShell starting in version 16.0.26714.12000. By default, this property is set to True, meaning that the tenant can archive files. When set to False, no new files can be archived by users, but existing archived files can be reactivated.
74
74
75
-
```PowerShell
76
-
Set-SPOTenant -AllowFileArchive $true
77
-
```
78
-
75
+
```PowerShell
76
+
Set-SPOTenant -AllowFileArchive $true
77
+
```
79
78
80
79
1.**Site-level enablement**. To control which sites have file-level archive enabled, enable or disable specific sites from being able to archive new files. This capability is controlled via the _**-AllowFileArchive**_ property flag of the _**Set-SPOSite**_ cmdlet. This flag was introduced into SPO admin PowerShell starting in version 16.0.26211.12000. By default, this property is set to True, meaning that the site can archive files. When set to False, no new files can be archived by users on this site, but existing archived files can be reactivated.
1.**Defaults for new sites**. To control the value of the _**-AllowFileArchive**_ flag for sites created in the future, tenants can utilize a new flag on the _**Set-SPOTenant**_ cmdlet called _**-AllowFileArchiveForNewSitesByDefault**_. By default, this property is set to True, meaning that new sites will be able to archive files by default. This property’s value will be copied to future created sites' ***-AllowFileArchive*** property flag, dictating whether those sites allow file archive.
85
+
1. **Defaults for new sites**. To control the value of the _**-AllowFileArchive**_ flag for sites created in the future, tenants can utilize a new flag on the _**Set-SPOTenant**_ cmdlet called _**-AllowFileArchiveOnNewSitesByDefault**_. By default, this property is set to True, meaning that new sites will be able to archive files by default. This property’s value will be copied to future created sites' ***-AllowFileArchive*** property flag, dictating whether those sites allow file archive.
Admins can also utilize PowerShell to view usage of file-level archive. [SharePoint Administrators](/entra/identity/role-based-access-control/permissions-reference#sharepoint-administrator) or [Global Administrators](/entra/identity/role-based-access-control/permissions-reference#global-administrator) can see how much total storage is consumed by file-level archiving for a given site. The '*ArchivedFileDiskUsed*' property of the ***Get-SPOSite*** cmdlet indicates the storage consumed by all archived files on that site in bytes.
91
+
Admins can also utilize PowerShell to view usage of file-level archive. [SharePoint Administrators](/entra/identity/role-based-access-control/permissions-reference#sharepoint-administrator) or [Global Administrators](/entra/identity/role-based-access-control/permissions-reference#global-administrator) can see how much total storage is consumed by file-level archiving for a given site. The '*ArchivedFileDiskUsed*' property of the ***Get-SPOSite*** cmdlet indicates the storage consumed by all archived files on that site in bytes.
94
92
95
-
```PowerShell
96
-
Get-SPOSite -Identity <site_url>
97
-
```
93
+
```PowerShell
94
+
Get-SPOSite -Identity <site_url>
95
+
```
98
96
99
97
## Manage archived sites
100
98
@@ -168,4 +166,4 @@ You can archive a site by using the Graph API **beta** endpoint [**site: archive
168
166
169
167
170
168
> [!NOTE]
171
-
> OneDrive accounts (site template 21) cannot be archived by admins. Some accounts will be put into archive by the OneDrive service when they are unlicensed for 93 days or more. When the service archives these accounts, admins can reactivate the accounts via PowerShell. [Learn more about unlicensed OneDrive accounts](/SharePoint/unlicensed-onedrive-accounts).
169
+
> OneDrive accounts (site template 21) can't be archived by admins. Some accounts will be put into archive by the OneDrive service when they are unlicensed for 93 days or more. When the service archives these accounts, admins can reactivate the accounts via PowerShell. [Learn more about unlicensed OneDrive accounts](/SharePoint/unlicensed-onedrive-accounts).
0 commit comments