Enabling Access to Archive Services Configuration (SharePoint 2019) - Archive Services for Microsoft SharePoint - English - Foundation 22.1 - OnBase - Essential - Premier - Standard - external - Essential - Premier - Standard

Archive Services for Microsoft SharePoint

Archive Services for Microsoft SharePoint
Foundation 22.1

Enhanced security features in SharePoint can prohibit the configuration of Archive Services. The following steps describe how to run a script that allows you to access and save changes to Archive Services configuration. Specifically, it allows an administrator to save changes to the SharePoint configuration database from a SharePoint content application. This is the default behavior in earlier versions of SharePoint.

To undo these changes, complete the following procedure, Reverting to the Default Settings.

To enable access to archive services configuration:

  1. Copy the following text into Notepad, and save the file with an extension of .ps1.
    function Set-RemoteAdministratorAccessDenied-False()
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") > $null
    $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
    $contentService.RemoteAdministratorAccessDenied = $false
  2. Open SharePoint 2019 Management Shell on the SharePoint server. Select Start | All Programs | Microsoft SharePoint 2019Products | SharePoint Management Shell.
  3. Run the following command:

    Set-ExecutionPolicy unrestricted

  4. Press Y and ENTER when prompted to confirm.
  5. Type the full path to the file you just saved. For example, enter:



    If the path contains any blank spaces, first type an ampersand (&) and a space, and then type the path within quotation marks. For more information about running PowerShell scripts, see the following Microsoft TechNet articles: http://technet.microsoft.com/en-us/library/ee806878.aspx http://technet.microsoft.com/en-us/library/ee176949.aspx

  6. Press ENTER to run the script.
  7. When the script is finished, close SharePoint 2019 Management Shell.
  8. Restart IIS to allow the change to take effect. In a Run dialog box, enter iisreset.