Wsp Struck On Deploying

 Check status with below Powershell:

------------------------------------------

$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  

        }  

    }  

}  



To Make Online service:

---------------------------



$farm = Get-SPFarm  

$disabledTimers = $farm.TimerService.Instances | where {  

    $_.Status -ne "Online"  

}  

if ($disabledTimers -ne $null) {  

    foreach($timer in $disabledTimers) {  

        Write-Host "Timer service instance on server " $timer.Server.Name " is not Online. Current status:" $timer.Status  

        Write-Host "Attempting to set the status of the service instance to online"  

        $timer.Status = [Microsoft.SharePoint.Administration.SPObjectStatus]::Online  

        $timer.Update()  

    }  

} else {  

    Write-Host "All Timer Service Instances in the farm are online! No problems found"  

Comments

Popular posts from this blog

Search Service Application Error in SP2013

Errors While Importing Site Collection in SharePoint 2013/2010

Deleting Multiple Sub-sites within Site using PowerShell