Hi Carlson, Eric,
Good day! Thank you for posting your question in the Microsoft Q&A forum.
I am understanding that when you tried running the script to configure OIDC authentication in SharePoint Server, you encountered an error on the UpdateNonceCertificate line. Interestingly, when checking the certificate in Central Administration, it appears to be present, which understandably causes confusion.
This issue is most likely due to SharePoint attempting to create a timer job to deploy the nonce certificate, but a job with the same name already exists. This can happen if a previous attempt to run UpdateNonceCertificate was interrupted or failed, leaving the timer job behind.
You can refer to the official documentation on Timer job reference for SharePoint Server – Microsoft Learn to understand about timer jobs and how to manage them via SharePoint Central Administration. Specifically, navigate to Central Administration > Monitoring > Timer Jobs to check the Timer Job Status and Job Definitions pages. These pages allow you to see if a timer job with the same name is already scheduled or running.
Suggested Solutions:
- If the job is still running or queued, you might just need to wait a few minutes and try running the script again.
- To manually remove the existing timer job, you can use the following PowerShell script:
$timerService = Get-SPTimerService
$existingJob = $timerService.JobDefinitions | Where-Object { $_.Name -like "Provisioning Certificate*" }
if ($existingJob) {
$existingJob.Delete()
Write-Host "Deleted existing timer job: $($existingJob.Name)"
} else {
Write-Host "No existing timer job found."
}
After deleting the job, re-run your UpdateNonceCertificate script. Make sure to start the SharePoint Management Shell as a farm administrator to ensure you have the necessary permissions to execute these commands.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.