Posts

SharePoint 2010 currently installed version

There are different methods to find currently installed version of SharePoint. Method 1:   SharePoint 2010 Central Administration: 1.      Open  SharePoint 2010 Central Administration 2.      Click System Settings 3.      Click Manage Servers in This Farm 4.      See  Configuration Database Version  field Method 2:  Detailed from SharePoint 2010 Central Administration: 1.      Open  SharePoint 2010 Central Administration 2.      Click Upgrade and Migration 3.      Click Check Product and Patch Installation Status 4.      See  Version  column Method 3:  SharePoint PowerShell: 1.      Open  SharePoint 2010 Management Shell(run as administrator)  2.      Type   (get-spfarm).buildversion

SharePoint 2010 : Mount and Test database using Power Shell

mount-SPContentDatabase "WSS_NRM_3333" -DatabaseServer "kpk01" -WebApplication http://kpk01:3333 Test-SPContentDatabase -name WSS_NRM_3333 -webapplication http://kpk01:3333

SharePoint Power Shell : Remove/Delete users from User Information List

Script: $url = "http://sitecollection" $web = get-spweb $url $list = $web.Lists["User Information List"] $listItems = $list.Items $listItemsTotal = $listItems.Count for ($x=$listItemsTotal-1;$x -ge 0; $x–-) { Write-Host(“DELETED: ” + $listItems[$x].name) remove-spuser $listItems[$x]["Account"] -web $url -confirm:$false } $web.dispose() Url: http://[localhost]/_catalogs/users/simple.aspx)

How to change SharePoint My Site Host Url using Power Shell

$AnySiteCollectionUrl = "http://SPSite/" $site = Get-SPSite $AnySiteCollectionUrl $context = Get-SPServiceContext($site) $pm = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($context) Write-Host "previous My Site Host Url: " $pm.MySiteHostUrl -ForegroundColor Yellow; $pm.MySiteHostUrl = "" $pm.MySiteHostUrl = "http://mysiteurl/" Write-Host "new My Site Host Url: " $pm.MySiteHostUrl -ForegroundColor Yellow; $site.Dispose()

SharePoint Update UserInfo List From AD

namespace UpdateList {     class Program     {         static void Main( string [] args)         {             Program pp = new Program ();             pp.XFunInsert();         }         private void XFunInsert()         {             using ( SPSite oSite = new SPSite ( "http://localhost:650/sites/lms" ))             {                 using ( SPWeb oWeb = oSite.RootWeb)               ...

SharePoint 2013 Prerequisites fails with MSI Installer error code 1603 while installing AppFabric 1.1

http://blogs.technet.com/b/praveenh/archive/2013/02/22/sharepoint-2013-prerequisites-fails-with-msi-installer-error-code-1603-while-installing-appfabric-1-1.aspx

Migrate / Upgrade SharePoint 2007 - 2010 and 2010 - 2013

SharePoint 2007 - 2010 http://sharepoint2010blog.blogspot.com/2010/01/how-to-upgrade-to-sharepoint-2010-using_21.html http://www.sharepointdiary.com/2011/09/migrate-from-moss-2007-to-sharepoint-2010.html $db = Get-SPContentDatabase WSS_Content_SharePoint_2007 $db.Sites | Get-SPWeb -limit all | ForEach-Object {$_.UIversion = 4; $_.UIVersionConfigurationEnabled = $false; $_.update()} SharePoint 2010 - 2013 http://www.codeproject.com/Articles/663663/Live-Migration-of-SharePoint-2010-to-SharePoint-20 Upgrade databases from SharePoint 2010 to SharePoint 2013