run sharepoint 2019 configuration wizard using powershell

run sharepoint 2019 configuration wizard using powershell step by step is very important for monthly sharepoint patching activity. Follow step by step to run sharepoint config wizard. SharePoint patching is a two step process. Install CU and run config wizard. In this video only describe how to run config wizard once CU installation is completed. If SharePoint server 2019 central admin, you will find upgrade available, upgrade required after installing updates, then you need to run the config wizard using powershell.

PSConfig.exe -cmd upgrade -inplace b2b -wait -cmd applicationcontent -install -cmd installfeatures -cmd secureresources -cmd services -install
Advertisements

sharepoint 2019 configuration wizard run using powershell | #SharePoint2019, #PatchingSharePoint

run sharepoint 2019 configuration wizard
Advertisements

Using GUI will not resolve the issue upgrade available, upgrade required. If still you are facing issue then follow the below video Configuration Cache Clearing SharePoint 2019. Then run the configuration wizrd again using powershell

Advertisements

Configuration Cache Clearing SharePoint 2019 | #SharePoint, #SharePoint2019, #ConfigCache

Configuration Cache Clearing SharePoint 2019

Advertisements

configuration cache clearing sharepoint 2019 step by step

in this post we will discuss how configuration cache clearing sharepoint 2019 is done in on-premise environment step by step. clearing configuration cache involves below steps

  • Stop the sharepoint “SharePoint Timer Service (SPTimerV4)” “.
  • Delete all files of type “XML Document” from “Config” folder.
  • Take Back up of file “cache.ini” file.
  • Edit the value present in the file “cache.ini” and save.
  • Restart timer job “SharePoint Timer Service (SPTimerV4)“.
Advertisements

Stop timer job service SharePoint Timer Service (SPTimerV4)

first you need to stop the timer job service “sharepoint timer serivce (SPTimerV4)“. You can stop the timer service either directly opeining from services or you can use powershell command to stop sharepoiint timer service job.

Open “Run” from windows server or click button “Windows + R” to open “Run“.

how to open services.msc from windows server 2019
open services.msc
Advertisements

identifty the timer job “SharePoint Timer Service (SPTimerV4)“. Right click on the timer job, click on “Stop“.

how to stop services sharepoint timer services SPTimerV4 during configuration cache clearing
stop services sharepoint timer services
Advertisements

you can stop timer job “SharePoint Timer Service (SPTimerV4)” using powershell command as well. Open sharepoint timer services preoperties.

sharepoint timer services preoperties
sharepoint timer services preoperties
Advertisements

Open “Windows Powershell ISE” as an administrator and enter the command below to stop services.

Stop-Service -Name SPTimerV4
stop-service using powershell
stop-service using powershell
Advertisements

Navigate to sharepoint configuration cache location “C:\ProgramData\Microsoft\SharePoint\Config“. There will be one folder under which cache files will be there. click on that folder as per the screenshot below.

sharepoint configuration cache location
Advertisements

Delete all “XML Document” files present in that folder except “cache.ini“.

delete configuration cache files sharepoint during configuration cache clearing sharepoint 2019
Delete configuration cache files (XML Document)
Advertisements

Open the file “cache.ini” and edit value to “1” and “Save” the file.

edit the vluse present under file cache
Edit the vluse present under file cache
Advertisements

Restart the timer job now which will recreate the cache files. Run the below command so as to start sharepoint timer service.

Start-Service -Name SPTimerV4
start-service
start-service
Advertisements

Cache files will be recreated in the folder “Cache”.

configuration cache clearing
configuration cache created again
Advertisements

Configuration Cache Clearing SharePoint 2019 | #SharePoint, #SharePoint2019, #ConfigCache

Configuration Cache Clearing SharePoint 2019 | #SharePoint, #SharePoint2019, #ConfigCache
Advertisements

Save list as template sharepoint 2019 powershell

Most of the cases end user or site owner who actually own the sharepoint site for production server, create list using out of box UI to create sharepoint list. There are certain cases where requirement is to save list as template and create another list using the saved template. Here i will share how to Save list as template sharepoint 2019 powershell. Creating powershell is very fast, easy, less performance issues compared to UI method.

Advertisements
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

I have a custom sharepoint list “Name: Report 2019”. The number of list items crossed the limit of listview threshold 5000. You got a request to create another list of similar template without including content. This case Save list as template sharepoint 2019 powershell would be helpful. Please find the script below.

Save list as template sharepoint 2019 powershell
Advertisements
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});
#Configuration parameters
$WebURL="http://win-7uqhlrcrq7g:40331/sites/SpTechSupport/"
$ListName="Report 2019"
$TemplateName="Report 2019 Template"
$TemplateFileName="Report2019Template"
$TemplateDescription="Report 2019 List Template"
$SaveData = $true

#Get the Web and List objects
$Web = Get-SPWeb $WebURL
$List = $Web.Lists[$ListName]

#Save List as Template
$List.SaveAsTemplate($TemplateFileName, $TemplateName, $TemplateDescription, $SaveData)
Write-Host "List Saved as Template!"
Save list as template sharepoint 2019 powershell-2
Save list as template sharepoint 2019 powershell-2
Advertisements
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});

Navigate to “List Template” and see, we save list as template.

Save list as template sharepoint 2019 powershell -3
List Template
Advertisements

Save list as template sharepoint 2019 using powershell | #SharePoint2019, #SharePointListTemplate

Save list as template sharepoint 2019 using powershell | #SharePoint2019, #SharePointListTemplate
https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8844016778182294 (adsbygoogle = window.adsbygoogle || []).push({});