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:
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.