Posts

SharePoint 2010 Disable List Throttling and Enable Version on Generic Lists

Open SharePoint 2010 Power Shell and run following script: $siteURL = "http://siteurl" $site = Get-SPSite($siteURL) foreach($web in $site.AllWebs) {  Write-Host "Inspecting " $web.Title  foreach ($list in $web.Lists) {  if($list.BaseType -eq "GenericList") {  Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling  $host.UI.WriteLine()  $list.EnableVersioning = $true  $list.EnableThrottling = $False  $list.Update()  Write-Host $list.Title "Versioning enabled: " $list.EnableVersioning $list.EnableThrottling  $host.UI.WriteLine()  }  } } ============================================================== $web = Get-SPWeb -Identity  http://site $web.AllowUnsafeUpdates = $true $list = $web.Lists["ListName"] $list.EnableThrottling = $false $list.Update() $web.AllowUnsafeUpdates = $false $list.EnableThrottling $web.Update() $web.Dispose()

SharePoint Backup Restore Database version Problem on Same Server

Database upgrade on source server. Open Sharepoint PowerShell, and type  Upgrade-SPContentDatabase  command,

Cannot start service SPAdminV4 on computer '.'

Error: Failed to upgrade SharePoint Products. An exception of type System.InvalidOperationException was thrown.  Additional exception information: Cannot start service SPAdminV4 on computer '.'. System.InvalidOperationException: Cannot start service SPAdminV4 on computer '.'. ---> System.ComponentModel.Win32Exception: The service did not respond to the start or control request in a timely fashion    --- End of inner exception stack trace ---    at System.ServiceProcess.ServiceController.Start(String[] args)    at Microsoft.SharePoint.PostSetupConfiguration.ServiceHelper.Start(String serviceName)    at Microsoft.SharePoint.PostSetupConfiguration.ServiceHelper.TryToStartService(String serviceName, Boolean autostart, Boolean throwOnFailure)    at Microsoft.SharePoint.PostSetupConfiguration.UpgradeTask.Run()    at Microsoft.SharePoint.PostSetupConfiguration.TaskThread.ExecuteTask() Resolution: http...

Issue using SharePoint DateTime Control in custom webpart

Image
Creating a custom web part in SharePoint and use SharePoint's DateTime control but DateTime frame/popup is not working properly i.e. design , font and css etc. Resolution : Use below code in page load event:- dtpInvoiceDate.DatePickerFrameUrl = SPContext .Current.Web.ServerRelativeUrl + "/_layouts/iframe.aspx" ;

SharePoint Install/Uninstall SP Solution delay

Open  stsadm  and run following command:- stsadm -o execadmsvcjobs

Deny User or group access to the Web Application

Perfect Solution http://sharepointtechie.blogspot.com/2010/10/deny-users-access-on-entire-portal-web.html 

Disabling the threshold for SharePoint List and Document Library

$web = Get-SPWeb -Identity http://site $web.AllowUnsafeUpdates = $true $list = $web.Lists["ListName"] $list.EnableThrottling = $false $list.Update() $web.AllowUnsafeUpdates = $false $list.EnableThrottling $web.Update() $web.Dispose()