Trending issue: Content deployment fails after installing December 2021 CU if temp folder points to non-default location

December CU shipped with a security fix which – by default – blocks deployments if the temporary storage location is not on the C-Drive.

To enable a different drive it is required enable it using powershell code like the following:

$farm = Get-SPFarm
# specify the drive which holds the tempory folder
$farm.AllowedContentDeploymentTempFolderDirectories = "X:\"
$farm.Update()

You can identify the configured temporary files folder path in the Content Deployment Settings page in the Central Administration or by running the following PowerShell command:

[Microsoft.SharePoint.Publishing.Administration.ContentDeploymentConfiguration]::GetInstance().TemporaryFolder

2 Comments


  1. I assume the default location is c:\ProgramData\ContentDeployment ? I ran the PowerShell command and got that.

    Reply

    1. Yes. That’s correct.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.