Wednesday, June 19, 2013

SharePoint 2013: Configure State Service

To do this simply change the names to whatever you want, copy each line below individually into the command shell and press enter after each.

>$stateName = “State Service”
>$stateDBName = “State_Service_DB”
>$stateDB = New-SPStateServiceDatabase -Name $stateDBName
>$state = New-SPStateServiceApplication -Name $stateName -Database $stateDB
>New-SPStateServiceApplicationProxy -Name ”$stateName Proxy” -ServiceApplication $state –DefaultProxyGroup

When you have successfully configured the State Service you will see this in your powershell window:
Image

Saturday, June 15, 2013

SharePoint 2013: WSS_UsageApplication proxy stopped

WSS_UsageApplication proxy stopped

I noticed that the service application proxy to the usage application was in status "Stopped".  Run the following PowerShell commands to start the UsageApplication Proxy again:

PS> $sap = Get-SPServiceApplicationProxy | where-object {$_.TypeName -eq “Usage and Health Data Collection Proxy”}
PS> $sap.Provision()

Wednesday, June 12, 2013

SharePoint 2013: Can't delete Web application "an object already exists"

Problem:

Can’t delete a web application. Receiving the following error:

Remove-SPWebApplication : An object of the type Microsoft.SharePoint.Administration.SPIisWebsiteUnprovisioningJobDefinition named “Unprovisioning SharePoint Web Application Name” already exists under the parent Microsoft.SharePoint.Administration.SPWebService named “”. Rename your object or delete the existing object. At line:1 char:24

Solution:

Go to:
  1. Central Administration
  2. Monitoring
  3. Review job definitions 
  4. Scroll to the bottom and click the “forward” arrow 
  5. Look for “Unprovisioning Web Application (SharePoint Web Application Name)” (it will be a one-time schedule) 
  6. Delete the job 
Done.