Skip to content

Commit 710a9e1

Browse files
Merge pull request #31135 from MicrosoftDocs/main
[AutoPublish] main to live - 03/19 01:42 PDT | 03/19 14:12 IST
2 parents 91cf133 + ae9d2d9 commit 710a9e1

1 file changed

Lines changed: 15 additions & 17 deletions

File tree

microsoft-365/archive/archive-manage.md

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,29 +72,27 @@ To control which sites can use file-level archive, admins have three PowerShell
7272

7373
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.
7474

75-
```PowerShell
76-
Set-SPOTenant -AllowFileArchive $true
77-
```
78-
75+
```PowerShell
76+
Set-SPOTenant -AllowFileArchive $true
77+
```
7978

8079
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.
8180

82-
```PowerShell
83-
Set-SPOSite -Identity <site_url> -AllowFileArchive $true
84-
```
85-
81+
```PowerShell
82+
Set-SPOSite -Identity <site_url> -AllowFileArchive $true
83+
```
8684
87-
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.
8886
89-
```PowerShell
90-
Set-SPOTenant -AllowFileArchiveForNewSitesByDefault $true
91-
```
87+
```PowerShell
88+
Set-SPOTenant -AllowFileArchiveOnNewSitesByDefault $true
89+
```
9290
93-
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.
9492
95-
```PowerShell
96-
Get-SPOSite -Identity <site_url>
97-
```
93+
```PowerShell
94+
Get-SPOSite -Identity <site_url>
95+
```
9896
9997
## Manage archived sites
10098
@@ -168,4 +166,4 @@ You can archive a site by using the Graph API **beta** endpoint [**site: archive
168166
169167
170168
> [!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

Comments
 (0)