Monday, October 24, 2011

User Profile Service Initial Sync Problems

Failure retrieving application ID for User Profile Application Proxy
REBOOT TUT GUT (vom Server welcher die UPS Rolle hat)

The Execute method of job definition Microsoft.Office.Server.UserProfiles.UserProfileImportJob (ID 8fa89e28-86ce-4644-a599-48fbd9e72e0f) threw an exception. More information is included below. Generic failure


HKLM\SYSTEM\CurrentControlSet\Services\FIMSynchronizationService\Parameters
FARM ACCOUNT BERECHTIGEN
..:Restart Timer Service

und / oder
NETWORK SERVICE Account auf c:\program files\office server\14.0 berechtigen.

Thursday, October 20, 2011

Event ID 5215: The EXECUTE permission was denied on the object 'proc_GetProductVersions', database 'SharePoint_Config', schema 'dbo'.

In the database server, expand SharePoint Config database and naviage to Programmability/Stored Procedures/dbo.proc_GetProductVersions using SQL Server Management Studio.
Right click on the above stored procedure and select Properties.
On the popup screen, select Permissions on the left and click Search button.
On the new popup screen, click Search, select [WSS_Content_Application_Pools] database role and click OK.
Click OK again.
On the first popup screen, select the role, check Execute permission and click OK.

Monday, October 17, 2011

Url Problem: %2520 --> %20

Lösung 1: (einfacherer Weg)
Select a view with broken images in Thumbnails view mode
Choose Site Actions > Edit Page
From the library Web Part's Edit drop-down, choose Edit Web Part, Apply, and OK
When you Exit Edit Mode, the Thumbnails appear correctly
Repeat for each view with broken Thumbnails

Lösung 2: (mühsamer Weg)
Cloned the view "All Pictures" to a view called "Temp" and assigned Temp to be the default view.
Delete the "All Pictures" view
Clone the view "Temp" to "AllItems" assigning AllItems to be the default view.
Delete the view "Temp"
Set the title fo the AllItems view to be "All Pictures"
Aside from the view GUID everything appears to be identical, but with links functioning properly.

Thursday, October 13, 2011

Wednesday, October 12, 2011

Delete all Content Databases within a WebApplication

$webapp = http://webappname"

get-spcontentdatabase -WebApplication $webapp | ForEach-Object {remove-spcontentdatabase $_.name}

Thursday, October 6, 2011

PeoplePicker -> Multiple Domains

$domain_trust = "mycompany.local"
$pp_user_in_trusted_domain = "pp_username"
$pp_pass_in_trusted_domain = "pp_password"

$pp_password = "peoplepickerpassword"



$computer = Get-WmiObject -Class Win32_ComputerSystem
$domain_local = $computer.domain
stsadm.exe -o setapppassword -password $pp_password
stsadm -o setproperty -pn "peoplepicker-onlysearchwithinsitecollection" -propertyvalue No
$all_webapps = Get-SPWebApplication -IncludeCentralAdministration
foreach ($webapp in $all_webapps)
{
 stsadm -o setproperty -pn "peoplepicker-onlysearchwithinsitecollection" -propertyvalue No -url $webapp.url
 stsadm.exe -o setproperty -url $webapp.url -pn "peoplepicker-searchadforests" -pv "domain:$domain_local;domain:$domain_trust,$pp_user_in_trusted_domain@$domain_trust,$pp_pass_in_trusted_domain"
}

Tuesday, October 4, 2011

Upgrade all Content DBs (after SP or CU)

PSConfig.exe -cmd upgrade -inplace b2b -force -cmd applicationcontent -install -cmd installfeatures

 Get-SPDatabase | ?{$_.NeedsUpgrade –eq $true} | Select Name
Get
-SPContentDatabase | ?{$_.NeedsUpgrade –eq $true} | Upgrade-SPContentDatabase