Posts

SharePoint Search Service application content sources showing Paused

There may be many reasons for content sources to get into Paused  Below PowerShell script will help you c hecks status of Search Service application whether its running or Paused. If paused then returns the detailed information why its paused and asks input from user to resume  asnp "*sharepoint*" $searchserviceapps = Get-SPEnterpriseSearchServiceApplication foreach ($ssa in $searchserviceapps) {  Write-Host $ssa  -ForegroundColor Magenta $band = "0x" $band0 = "0x0" Function Details()     { $Detail = Read-Host "Do you want to see detailed reasons (Y/N) " If($Detail -eq "y")         { Write-Host " (band 0x01)          A change in the number of crawl components or crawl databases is in progress. (band 0x02)          A backup or restore procedure is in progress. (band 0x04)          A backup of the Volume Shadow Copy Service (VSS) is in progress. (band 0x08)          

PoweShell script to perform IISReset across all servers in SharePoint Farm

Get all Servers in the Farm with the role not like invalid, get IIS application pool status if any app pool found stopped then restarts the same and finally returns the status of Application pool. asnp "*sh*" $servers = Get-SPServer | ?{$_.Role -ne "Invalid"} foreach ($server in $servers)   {     $servername = $server.Address     Write-Host "Application Pool Status in : $server" -f Yellow       Invoke-Command -ComputerName $servername -ScriptBlock {    Import-Module WebAdministration   IISRESET /noforce   IISRESET /Status       cd IIS:\    $apppool =  gci .\AppPools    try    {      $apppool | ?{$_.state -eq "stopped" } | Start-WebAppPool     sleep 2;      }    catch    {        Write-Error $_;    }    finally    {       $apppool | select Name, State | Format-Table           Write-Host;    }    } #End of Scriptblock  }

SharePoint web application not created in IIS web server

As long as you have SharePoint web application service instance on the servers then any web application should be automatically get created in IIS, some times when New Web application is created and if it doesn't create  IIS Site in all Servers(WFE's) as it should then we can run below command to re-provision that web application to created IIS site using below Command which force web application to register in IIS asnp "*sharepoint*"   $webapp = get-spwebapplication <"URL of web application"> $ webapp  .provisionglobally()

SharePoint Farm Reboot

Below script will help you to reboot all servers in SharePoint Farm. asnp "*sharepoint*" $servers = Get-SPServer | ?{$_.Role -ne "Invalid"} foreach ($server in $servers)   {     $servername = $server.Address     Write-output "Executing on : $server" -ForegroundColor Yellow     if($env:COMPUTERNAME -ne $servername)     { Write-output $servername   SHUTDOWN /r /f /t 0 /m \\$servername       }   }   SHUTDOWN /r /f /t 0 /m \\$env:COMPUTERNAME

Steps to Change your SharePoint URL or SharePoint Site that as Host Name to User Friendly URL

If you are looking to change your Existing SharePoint URL (Ex – http://sp2010:1234 ) to User Friendly URL Like- http://www.sharepointmcp.com . Then Follow the following steps. 1.       Open C:\Windows\System32\drivers\etc Open Hosts file using Notepad 2.       After                : : 1              localhost   Type the below 127.0.0.1          www.sharepointmcp.com save the file. 3.       Open SharePoint 2010 Central Administration, Application Management, Under Web Applications, Click on Configure Alternate Access Mappings   - > Edit Public URLs 4.       Select Web Application ( http://sp2010:1234 ) on   Alternate Access Mapping Solutions   5.       Enter Internet URL as   http:// www.sharepointmcp.com 6.       Click on Save Button. You may now face authentication Issue, So now follow the rest of the steps to resolve authentication problem Click Start , click Run , type regedit, and then click OK . In Registry Ed

[Solved ] ...The product key entered does not match any of the Windows images available for installation. Enter a different product key

Step by step process to Make Pen drive as Bootable.    Enter into CMD Prompt.    Type - DISKPART.    Type - List DISK. Once we enter here it will list USB Disk Number. If your USB Disk Number is 1. Then Execute following Commands.    Select DISK 1    C lean    Create Partition Primary    Select Partition 1    Active    Format FS=NTFS Quick    Assign     Exit. Now insert DVD into DVD-Rom and Copy complete content of DVD into Removable Drive (Pen drive). Common Error for Windows 8 Based Computers. The product key entered does not match any of the Windows images available for installation. Enter a different product key. Please follow these steps to solve this error. Step -1 Create a file PID.TXT with following structure. Step -2 [PID] Value=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX Step – 3 Place your windows 8/2012 Pro key in where the X's are and save the file to the /sources directory in the Bootable USB Drive .

User Profile Synchronization Service Struck on "Starting" - Fixed

Image
User profile Service Synchronization  service Struck on “ starting ” . In SharePoint 2010 it is very common problem that whenever user profile synchronization is started. It gets struck on “starting”. There were many cases where user profile synchronization struck on starting  from my experience I will list some cases. First stop user profile synchronization service by using SharePoint Management Shell. ·          Get-SpServiceInstance ·          It will list all services currently running on SharePoint Farm.           ·          Select Id of User profile service synchronization, you can select Id by Right click on command prompt now Mark ID of User profile service synchronization and Hit Enter , Now Id will be automatically copied. ·          Now, stop user profile synchronization service . ·          Stop-SpServiceInstance –ID  <User profile synchronization service -ID > ·          You will be prompted with yes or no. Enter “ Y” to confirm your