What is the correct way to update WSP and DLL in sharepoint 2013 farm?

Toriyama 286 Reputation points
2021-12-16T23:59:26.113+00:00

My farm sharepoint 2013 has 4 servers and my farm solution contains wsp and dll.

To correctly update the solution on sharepoint, do I need to enter each server and update the wsps and install the dlls on the gac?

I know the database is unique. So maybe it is only necessary to always update 1 server that will be replicated to the others? If yes, can it be any 1 or is there a principal?

Thanks

SharePoint Server Development
SharePoint Server Development
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Development: The process of researching, productizing, and refining new or existing technologies.
1,624 questions
SharePoint Server Management
SharePoint Server Management
SharePoint Server: A family of Microsoft on-premises document management and storage systems.Management: The act or process of organizing, handling, directing or controlling something.
2,970 questions
0 comments No comments
{count} votes

Accepted answer
  1. JoyZ 18,076 Reputation points
    2021-12-17T07:29:55.683+00:00

    @Toriyama ,

    Run following powershell in any server which runs two services(timer service and SharePoint Foundation Administration web service), other servers will be deployed automatically(Usually, these two services run on the WFE server).

    Add-SPSolution -LiteralPath "C:\Solution\Qassas.wsp"  
    Install-SPSolution –Identity Qassas.wsp –WebApplication http://Server/ -GACDeployment  
    

    In addition,we can ran the following script to get the status of those two services for all SharePoint servers in farm:

    $farm = get-spfarm    
    $ss = $farm.Servers | ? {    
        $_.Role -notlike "Invalid"    
    }    
    foreach($s in $ss) {    
        $s.name    
        Write -host "........................."    
        $is = $s.ServiceInstances    
        foreach($i in $is) {    
            if ($i.TypeName -eq "Microsoft SharePoint Foundation Administration") {    
                $i.Typename    
                $i.status    
            }    
            if ($i.TypeName -eq "Microsoft SharePoint Foundation Timer") {    
                $i.Typename    
                $i.status    
            }    
        }    
    }  
    

    Outputs:

    158478-image.png

    If you disable one of these two services on any server, remember to set it online.


    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.



0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.