Posts

Showing posts from July, 2014

Disable Loopbackcheck using PowerShell

Disable Loopback Check Powershell To disable Loopback check run the following cmd on the (each) SharePoint server from a SharePoint PowerShell prompt (run as administrator): New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword

CORRECT INSTALLATION ORDER FOR SHAREPOINT SERVER 2010, LANGUAGE PACKS AND OFFICE WEB APPS

Image
In order to properly install these items, you must do things in the following order: SharePoint 2010 RTM + SP1 (slipstreamed) Configure Farm using PowerShell Office Web Apps RTM + SP1 (slipstreamed) Run SharePoint Config Wizard (PSConfig) on all severs SharePoint 2010 Server Language Pack RTM + SP1 (slipstreamed) Run SharePoint Config Wizard (PSConfig) on all servers Install OCT 2011 CU (or current recommended CU) Run SharePoint Config Wizard (PSConfig) on all servers (if you get errors here, so additional note below) Installing in any other order may cause issues and some functionality to not work properly. Additional Note: Sometimes after installing CU’s I’ve noticed errors when trying to run the SharePoint Products Configuration Wizard (PSConfig), like in the screenshot below. In my case the PSConfig wizard was complaining about missing language packs and the CU files, which I could confirm had been installed properly and there before installing the CU. To ...

PowerShell Script to Check and Generate Report on Access Rights for a Specific User:

Requirement: To ensure security, generate permissions report on all locations like (sites, lists, etc.) where a specific user has permissions. When people moving from one role to another, Its necessary to audit their permissions on sites and lists where user has access rights. But unfortunately, There is no out of the box ways to find all sites and lists where a particular user has been granted access in SharePoint with out using third party tools. Luckily, We've PowerShell! Lets find all SharePoint sites and lists where a particular user has access rights. PowerShell Script to Check and Generate Report on Access Rights for a Specific User: With this script, you can analyze and track the security effectively check what permissions on an account has been granted on each all places in SharePoint. This PowerShell script scans these areas to to retrieve a specific user's access rights: •Farm Administrator's Group •Central Administration Web Application Polici...

How to Resolve error "Document is Checked Out by Another User" Error

Document is checked out by another user At some point in time, while editing documents in SharePoint Services you may come across an error "Document is locked by another user". This error usually occurs if any of the following conditions are true: 1. MS Word crashes while you are working on the document 2. Computer restarted during document editing 3. Lost of network connectivity Let me first briefly tell you what happens in the background while you are editing a document in SharePoint. Lets say you went to a document library in SharePoint, and start editing a document in MS Word. As soon the document is opened, MS Word locks the document to you so that other users cannot use it for editing. Now guess what? It actually stores the document in your PC at a hidden location which by default is located at C:\Documents and Settings\UserName\Local Settings\Temporary Internet Files\Content.MSO where UserName is your ID which you use to login into your co...

How to change maximum upload file size with SharePoint 2010

Image
Hi All, today I share with you a simple way to change maximum size of upload file with  SharePoint 2010 First of all, we see what is the configuration uploading file interface look like!   Let's follow some steps to go to the "Web Application General Setting". 1. Open central administration site 2. Click Manage web applications 3. Click on a web application that we want to change general setting, assume "SharePoint - 80"   4. Click on General Settings icon   5. Now we can change maximum file size  

SharePoint Large File Upload Configuration

Image
Several times I have had SharePoint environments where there was a need for large file storage (I mean large files, 100MB+). SharePoint can accommodate, but you need to change a few settings in different parts of the overall system, or you'll run into errors and timeouts.  This is especially true when the file size is over 50MB.  Below are some steps to take in order to configure your environment.   Update file size in central admin   Navigate to Maximum Upload Size in SharePoint’s Central Admin, located at:   Central Administration > Application Management > Web Application General Settings.   The maximum you can set is 2047 megabytes.     Increase Time-out settings in IIS 7.0   In IIS, right-click on your site and navigate to Advanced settings     Expand Connection Limits, and enter an increased time-out setting.     This is not a requirement, but something that I usually do if SharePoint is going to be...

Troubleshooting the SharePoint “File not found” Error

Have you ever come across a “ File Not Found ” error when accessing some part of your   WSS 3.0 ,  MOSS 2007 , or   SharePoint 2010  portal? So have I. There are some modifications that the farm administrator can make to the web application’s   web.config   file to show more information about the error. I’ll break it down into an easy-to-follow guide that should give you a starting point to troubleshoot the error. Follow these steps: Navigate Here: C:\inetpub\wwroot\wss\Virtual Directories\< your web app's virtual directory > You can also open IIS Expand Sites Right click on your   SharePoint   site Choose explore proceed to step 2 Copy and paste the web.config file (making a backup) Open web.config using notepad Search for “CallStack” , set this equal to true Search for “Custom”, set the customerrors = “Off” Search for “Debug”, set Debug = “True” Save the web.config file and refresh your page in the browser You s...

How to Clear SharePoint Config Cache?

Open notepad & save this code -> save it as ".ps1" file & execute it from Powershell. Add-PSSnapin -Name Microsoft.SharePoint.PowerShell –erroraction SilentlyContinue Stop-Service SPTimerV4 $folders = Get-ChildItem C:\ProgramData\Microsoft\SharePoint\Config foreach ($folder in $folders)     {     $items = Get-ChildItem $folder.FullName -Recurse     foreach ($item in $items)         {             if ($item.Name.ToLower() -eq "cache.ini")                 {                     $cachefolder = $folder.FullName                 }             ...

SharePoint Administration & Development Tools and Guidance

Administration Tools Windows PowerShell Cmdlets : It is the scripting and administrative tool for Windows platforms; widely used from SharePoint to TFS, from Exchange to SQL Server. If you are administrating a SharePoint farm, this tool should be your best friend. The one specific to SharePoint (use of Microsoft.SharePoint.PowerShell) is SharePoint Management Shell which is introduced with SP 2010 and its latest version currently is 3.0. PowerShell scripts can be called programmatically. STSADM Tool : It is a command-line tool used for administrating SharePoint farm. It is used particularly for MOSS 2007. Its equivalent tool is PowerShell cmdlets that is mentioned above, and use of PowerShell instead is recommended. Other OOB Tools (depending on the SharePoint version): SPDisposeCheck : Tool used for checking if SP objects disposed according to disposing best practices. It certainly gives you primitive idea if the deployment has any memory leak issue, but requires further stu...

"This can only be used if 'SharePoint Profile Synchronization' is enabled in the 'Configure Synchronization Settings' for this User Profile Application."

Image
Issue: - "This can only be used if 'SharePoint Profile Synchronization' is enabled in the 'Configure Synchronization Settings' for this User Profile Application." Resolve:- Go to central administration -> service application -> manage service application -> user profile service -> click on 'Configure Synchronization setting' in 'Synchronization' tab, Now select 'use SharePoint profile synchronization' radio button in 'synchronization options' section & Click Ok. Go back to Services on Server -> User Profile Synchronization Service & enter the password again & click Ok.   Thank You.

Unable to find site template while restore, How to find Custom Template like e.g -11002 in SharePoint Database Server?

1) Find out the appropriate SharePoint Content Database from SharePoint Central Administration ->   Manage Content Database. 2) Login to SQL server which holds the SharePoint Content Databases 3) Right click on that SQL DB & select New Query 4) Run this query on that database & put appropriate error template & Title. SELECT *--Title, WebTemplate,ProvisionConfig FROM dbo.Webs WHERE WebTemplate = 11002-- and Title = 'ABCD' and FullUrl like '%ABCD%' After executing this query you will come to know the faulty or Custom error site template , You can delete this if its in no use & try your restore again.