Posts

Showing posts with the label SharePoint 2010

SharePoint Vanity URLs

Vanity URL is the url that just redirects to existing site to do that in SharePoint 2010/2013:

Note: the following steps needs to be done on all front ends servers if you are having more than 1 and also make sure to add it to the DNS


In IIS go to sites and add new one and enter the site information with the host name for vanity URLin the permissions for the new site add all authenticated users with read permissionIn IIS section click Authentication enable Windows Authentication till focused on the Windows Authentication in the right pane click Advanced Settings and deselect Enable Kernel-mode authentication.In IIS section, click HTTP Redirect. Check Redirect requests to this destination and enter the redirection information and apply this rule Now the vanity URL is ready

Disable Throttling on SharePoint List

$Site  =  Get-SPWeb –Identity <URL> $List  =  $Site.Lists["List Name"] $List.EnableThrottling =  $false $List.Update()





Migrate SharePoint DBs

To Migrate SharePoint DBs from SQL Server to another either same version or to a new version (2008 to 2008 or 2008 to 2012) you can follow the following steps:Stop all SharePoint and IIS Related Services.Stop IIS.Detach all related SQL Server databases.Configuration databaseCentral Administration content databaseContent databasesService application databases Move all database files (.mdf, .ldf, and .ndf) to the new server.Set up same user permissions on the new SQL server.Attach your databases to the new SQL Server.Verify ports in your new SQL server.Go to your SharePoint server and create your SQL Server Alias.Start all your SharePoint services.

SharePoint State Service Provision

With   3 Commands you can provision the State Service in SP 2010 which is needed for infopath templates

$serviceApp = New-SPStateServiceApplication -Name "StateServiceName" New-SPStateServiceDatabase -Name "StateServiceDatabaseName" -ServiceApplication $serviceApp
New-SPStateServiceApplicationProxy -Name "ApplicationProxyName" -ServiceApplication $serviceApp -DefaultProxyGroup