0

I am trying to confirm in SharePoint SE whether the timer job for modifying webconfigs is still available. In other earlier versions it is called job-webconfig-modifications. I have tried searching for it, but can't find it. Is it used or is called by a different name, and if so what is it called?

1 Answer 1

0

It should be the same; you will see it when you change the web.config file using the SharePoint Powershell.

You can run the following code to get the running jobs

Get-SPTimerJob -Identity "job-webconfig-modification" | Format-Table DisplayName,Id,LastRunTime,Status

some sample code to update the web.config

$app = Get-SPWebApplication http://test:8000/
$mod = New-Object Microsoft.SharePoint.Administration.SPWebConfigModification
$mod.Path = “configuration/SharePoint/WebPartLimits”
$mod.Name = “MaxZoneParts”
$mod.Value = “100”
$mod.Sequence = 0
$mod.Owner = “webpartmod”
$mod.Type = 1    
$app.WebConfigModifications.Add($mod)
$app.update()
$app.WebService.ApplyWebConfigModifications();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.