Thursday, April 19, 2012
Start all Health Analyzer Jobs
get-sptimerjob | where {$_.Name -like "*Health*" -and $_.Name -like "*all*"} | start-sptimerjob
Monday, April 16, 2012
Rename Central Administration Content Database
$ca_webapp_name = "http://centraladmin_url:9090"
$new_ca_contentdbname = "Content_CentralAdministration"
$old_ca_contentdatabase = get-spcontentdatabase -webapplication $ca_webapp_name
new-spcontentdatabase -name $new_ca_contentdbname -webapplication $ca_webapp_name
$new_ca_cdb_id = Get-SPContentDatabase -WebApplication $ca_webapp_name | where {$_.Name -eq $new_ca_contentdbname}
get-spsite -contentdatabase $old_ca_contentdatabase | move-spsite -destinationdatabase $new_ca_cdb_id
.... i will test this solution at 19th. April 2012
$new_ca_contentdbname = "Content_CentralAdministration"
$old_ca_contentdatabase = get-spcontentdatabase -webapplication $ca_webapp_name
new-spcontentdatabase -name $new_ca_contentdbname -webapplication $ca_webapp_name
$new_ca_cdb_id = Get-SPContentDatabase -WebApplication $ca_webapp_name | where {$_.Name -eq $new_ca_contentdbname}
get-spsite -contentdatabase $old_ca_contentdatabase | move-spsite -destinationdatabase $new_ca_cdb_id
.... i will test this solution at 19th. April 2012
Tuesday, April 10, 2012
Monday, April 2, 2012
Silent SharePoint Server installation
Create a BAT file within your SharePoint Binary Path: %~dp0setup.exe /config %~dp0SPconfig.xml
Create a File: SPConfig.xml within your SharePoint Binary Path and copy the following text into it.
<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
</Package>
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1"/>
<Setting Id="REBOOT" Value="ReallySuppress"/>
<Setting Id="OFFICESERVERPREMIUM" Value="1" />
</Package>
<Logging Type="verbose" Path="C:\SharePoint\Log" Template="SharePoint Server Setup(*).log"/>
<PIDKEY Value="12345-12345-12345-12345-12345" />
<DATADIR Value="C:\SharePoint\Data"/>
<Display Level="none" CompletionNotice="yes" />
<Setting Id="SERVERROLE" Value="APPLICATION"/>
<Setting Id="USINGUIINSTALLMODE" Value="0"/>
<Setting Id="SETUP_REBOOT" Value="Never" />
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
</Configuration>
Create a File: SPConfig.xml within your SharePoint Binary Path and copy the following text into it.
<Configuration>
<Package Id="sts">
<Setting Id="LAUNCHEDFROMSETUPSTS" Value="Yes"/>
</Package>
<Package Id="spswfe">
<Setting Id="SETUPCALLED" Value="1"/>
<Setting Id="REBOOT" Value="ReallySuppress"/>
<Setting Id="OFFICESERVERPREMIUM" Value="1" />
</Package>
<Logging Type="verbose" Path="C:\SharePoint\Log" Template="SharePoint Server Setup(*).log"/>
<PIDKEY Value="12345-12345-12345-12345-12345" />
<DATADIR Value="C:\SharePoint\Data"/>
<Display Level="none" CompletionNotice="yes" />
<Setting Id="SERVERROLE" Value="APPLICATION"/>
<Setting Id="USINGUIINSTALLMODE" Value="0"/>
<Setting Id="SETUP_REBOOT" Value="Never" />
<Setting Id="SETUPTYPE" Value="CLEAN_INSTALL"/>
</Configuration>
Thursday, March 29, 2012
Query Suggestions
$myquerysuggestion = "SharePoint"
$sa = Get-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $sa -Language EN-US -Type QuerySuggestionAlwaysSuggest -Name $myquerysuggestion
$sa = Get-SPEnterpriseSearchServiceApplication
New-SPEnterpriseSearchLanguageResourcePhrase -SearchApplication $sa -Language EN-US -Type QuerySuggestionAlwaysSuggest -Name $myquerysuggestion
Wednesday, March 28, 2012
Add a User and/or Group to all SiteCollections as SiteCollection Admin
This Script will automatically add a User and/Or Group to ALL SiteCollections in ALL WebApplications of your SharePoint Farm.
It can be very easily modified to do this action on just one WebApp by editing the line
$wapps = Get-SPWebApplication to
$wapps = Get-SPWebApplication "mywebappname"
It can be very easily modified to do this action on just one WebApp by editing the line
$wapps = Get-SPWebApplication to
$wapps = Get-SPWebApplication "mywebappname"
Wednesday, March 21, 2012
The password for the content access account cannot be decrypted.....
Errormessage:
The password for the content access account cannot be decrypted because it was stored with different credentials. Re-type the password for the account used to crawl this content.
Solution:
Tuesday, March 20, 2012
No Help Collection was found. / Help content cannot be displayed.
http://support.microsoft.com/kb/939313
cd %COMMONPROGRAMFILES%\Microsoft Shared\web server extensions\14\BIN
Hcinstal.exe /act InstallAllHCs
(do this action on all your SharePoint Servers)
cd %COMMONPROGRAMFILES%\Microsoft Shared\web server extensions\14\BIN
Hcinstal.exe /act InstallAllHCs
(do this action on all your SharePoint Servers)
Friday, March 16, 2012
SharePoint 2010 Browser Support
Great Article:
http://technet.microsoft.com/en-us/library/cc263526.aspx
But in general:
Only Internet Explorer 7-9 32Bit is fully supported.
All other browsers are just supported WITH limitations.
http://technet.microsoft.com/en-us/library/cc263526.aspx
But in general:
Only Internet Explorer 7-9 32Bit is fully supported.
All other browsers are just supported WITH limitations.
Wednesday, March 14, 2012
WebDav: Move Files between WebDav Folders
http://support.microsoft.com/kb/825522/en-us
It's most of all only possible to "move" data between WebDav Folder per Copy/Paste.
A REAL move is mostly not possible (just in special constellations)
It's most of all only possible to "move" data between WebDav Folder per Copy/Paste.
A REAL move is mostly not possible (just in special constellations)
Monday, March 12, 2012
Simple Sitecollection Backup
If you have for each site collection a seperate contentdatabase, you can use this script.
Otherwhise you've just to modify the backupfilename.
Otherwhise you've just to modify the backupfilename.
SharePoint Licensing
A great site about the SP licensing models. http://sharepoint.microsoft.com/en-us/buy/pages/licensing-details.aspx
Friday, March 9, 2012
MySite Memberships not displayed as expected. / MySite Memberships not correctly displayed
A User complained that his mysite memberships are not shown as he expected.
Thursday, March 1, 2012
MySite: An error occurred trying to save your profile
If you've multiple languages installed, you've alway to add "English" in your Managed Metadata Set.
You can still choose your default danguage to any other you want.

This is, what i've logged in ULS:
ProfileUI.SavePropertyValue(): System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: lcid
at Microsoft.SharePoint.Taxonomy.TermStore.ValidateLanguage(Int32 lcid)
at Microsoft.SharePoint.Taxonomy.Term.GetDefaultLabel(Int32 lcid)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.<>c__DisplayClass7.<GetValueCollectionStringRepresentation>b__6(Term i)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.GetValueCollectionStringRepresentation(ProfileValueCollectionBase valueCollection)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ValueEx(String strPropName)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.SavePropertyValue(ProfileBase objProfile, ProfileSubtypeProperty prop, Boolean bIgnoreEmpty).
You can still choose your default danguage to any other you want.

This is, what i've logged in ULS:
ProfileUI.SavePropertyValue(): System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: lcid
at Microsoft.SharePoint.Taxonomy.TermStore.ValidateLanguage(Int32 lcid)
at Microsoft.SharePoint.Taxonomy.Term.GetDefaultLabel(Int32 lcid)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.<>c__DisplayClass7.<GetValueCollectionStringRepresentation>b__6(Term i)
at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.GetValueCollectionStringRepresentation(ProfileValueCollectionBase valueCollection)
at Microsoft.SharePoint.Portal.WebControls.ProfilePropertyLoader.ValueEx(String strPropName)
at Microsoft.SharePoint.Portal.WebControls.ProfileUI.SavePropertyValue(ProfileBase objProfile, ProfileSubtypeProperty prop, Boolean bIgnoreEmpty).
Friday, February 24, 2012
MySites orphaned / old memberships not updated
Run the command stsadm -o sync -listolddatabases 1 You should then get a list of database GUID
Run the command stsadm -o sync -deleteolddatabases 1 This will remove the record from the SSP database but will not touch the actual Content Database.
(Run this commands as a User which has Full Control to the User Profile Service Application!)
Run the command stsadm -o sync -deleteolddatabases 1 This will remove the record from the SSP database but will not touch the actual Content Database.
(Run this commands as a User which has Full Control to the User Profile Service Application!)
Subscribe to:
Posts (Atom)