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:
Wednesday, June 19, 2013
Saturday, June 15, 2013
SharePoint 2013: WSS_UsageApplication proxy stopped
WSS_UsageApplication proxy stopped
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:
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:
- Central Administration
- Monitoring
- Review job definitions
- Scroll to the bottom and click the “forward” arrow
- Look for “Unprovisioning Web Application (SharePoint Web Application Name)” (it will be a one-time schedule)
- Delete the job
Subscribe to:
Posts (Atom)