$sts = Get-SPSecurityTokenServiceConfig
$sts.FormsTokenLifetime = (New-TimeSpan -minutes 2)
$sts.WindowsTokenLifetime = (New-TimeSpan -minutes 2)
$sts.LogonTokenCacheExpirationWindow = (New-TimeSpan -minutes 1)
$sts.Update()
iisreset
Mesačné archívy: február 2015
An update conflict has occurred, and you must re-try this action
stsadm -o setproperty -pn command-line-upgrade-running -pv No
psconfig -cmd upgrade -inplace b2b -force -wait
SharePoint Configuration Database Too Big
Reduce the amount of data a TimerJobHistory table.
$history = Get-SPTimerJob | Where-Object {$_.name -eq „job-delete-job-history“}
$history.daystokeephistory
$history.daystokeephistory = 2
$history.update()
$history.runnow()
Delete a Service Application Database that is Not Responding
Get-SPDatabase | where {$_.Type -notcontains „Content Database“ -and ` $_.Type -notcontains „Configuration Database“} | sort Type | format-table –autosize
$db2delete = Get-SPDatabase “GUID”
$db2delete
$db2delete.status
$db2delete.Delete()
Delete Stuck Service Application
Get -SPServiceApplication
Grab the Search Service Application id – [for example] 30b15b57-6bec-46b5-990d-541d99bab53b
then use this
Stsadm -o deleteconfigurationobject -id 30b15b57-6bec-46b5-990d-541d99bab53b
Copy library
export-spweb http://tbportal/changefacilitators -itemurl „_catalogs/lt/“ -path c:\test.cmp
Import-SPWeb -Identity http://tbportal/chm -Path c:\test.cmp
Syntax:
To backup a document library called ‘Library1′ in ‘Subsite’.
export-spweb