Feeds:
Posts
Comments

Archive for February, 2017

It will be handy to reset the IIS from one server to all. Save it as ps1 and execute in admin account.

$servers = Get-SPServer | Where {$_.Role -ne “Invalid” }
foreach ($server in $servers) {
Write-Host “Restarting IIS on server $server…”
IISRESET $server.Address /noforce
Write-Host “IIS status for server $server”
IISRESET $server.Address /status
}

Advertisements

Read Full Post »

Sometimes, due to disk space issue, you might need to clean up some space in drive. Deleting Index files by selecting all and delete is not advisable. Instead of delete those index files, follow below steps, which will release and erase smooth and safe.

    1. Verify that the user account that is performing this procedure is an administrator for the Search service application for which you want to reset the search index.
    2. On the SharePoint Central Administration home page, in the Application Management section, click Manage service applications.
    3. On the Manage Search Applications page, click the Search service application for which you want to reset the search index.
    4. On the Search Administration page, under System Status, verify that the Administrative status of the Search service application is Running and not Paused.
    5. On the Search Administration page, in the Crawling section, click Index Reset.
    6. On the Index Reset page, verify that the Deactivate search alerts during reset check box is checked, and then click Reset Now.
  • In the confirmation dialog box that appears, click OK to confirm that you want to reset the index.

Read Full Post »

Execute the cmdlets in SP Shell under farm account,

> $farm = Get-SPFarm

> $farm.Servers |% { Get-SPServiceInstance -Server $_.Name | where { $_.TypeName -like “Excel*” } | select TypeName, Status }

Result will be like,

TypeName                                                                                                                   Status
——–                                                                                                                   ——
Excel Calculation Services                                                                                               Disabled
Excel Calculation Services                                                                                               Disabled
Excel Calculation Services                                                                                               Disabled
Excel Calculation Services                                                                                                 Online
Excel Calculation Services                                                                                                 Online

Modify the Service name according to your need.

Read Full Post »

The Script helps to backup of previous WSP solutions

Get-SpSolution | forEach-Object {$_.SolutionFile.SaveAs(“C:\SPbackup\$($_.Name)”)}

Read Full Post »

Steps involved in restart the Cache

To STOP

$instanceName =”SPDistributedCacheService Name=AppFabricCachingService”

$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}

$serviceInstance.Unprovision()

To START

$instanceName =”SPDistributedCacheService Name=AppFabricCachingService”

$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}

$serviceInstance.Provision()

Read Full Post »