kwizcom banner advertisement

Disable Attachments in SharePoint List

March 31, 2013    ,
If you want to disable attachments for a SharePoint list for whatever reason, head on to List Settings >> Advanced  Choose "Disabled" under Attachments section! That's it! To make this change programmatically, set SPList.EnableAttachments = false . Its possible to hide attachment link using JavaScript or jQuery. We can also use "SPSecurityTrimmed" control using SharePoint designer. Refer: http://social.technet.microsoft.com/Forums/sharepoint/en-US/d6dc1621-4265-4c4b-8ac8-3c83eefb674c/how-to-disable-or-hide-the-attachment-upload-on-a-lists-new-form
Disable Attachments in SharePoint List Disable Attachments in SharePoint List Reviewed by Salaudeen Rajack on March 31, 2013 Rating: 5

How to Add Users to SharePoint Site and Grant Permissions?

March 29, 2013    , , , , , , ,
Adding users to SharePoint site is a frequent activity for SharePoint site owners. Users can be added either to any existing SharePoint group or directly under site permissions. Lets see how to add users in SharePoint site. How to Add Users to SharePoint  1. To add users to SharePoint 2010 site, Log-in to your SharePoint site with Site owner (or with more) permission. 2. Click on Site Actions > Site Permissions 3. Select the SharePoint Group to which you want to add users. By default, SharePoint sites comes with these user groups: Owners with Full Control Permissions. Members with Contribute Permissions Visitors with Read Only   4. Click on New and Select Add Users ADS\username) or ADS group names of the people or groups you want to add (separated by semicolons). You can use "Browse" button to search and select the user names. 5. To check the accuracy of the user names you added, click the Check Names icon. 6. Now after clicking Ok, you cou
How to Add Users to SharePoint Site and Grant Permissions? How to Add Users to SharePoint Site and Grant Permissions? Reviewed by Salaudeen Rajack on March 29, 2013 Rating: 5

Package and Delpoy Content Types as Feature Based Solutions in SharePoint 2010

March 28, 2013    , , , ,
Task: Create a feature based solution package to pack and deploy the content type from DEV environment to STAGING environment in SharePoint 2010. Although SharePoint 2010 supports content type hub, where content types of one site collection can be used by other site collections/web application/even Farms, we needed an isolation and wanted to pack & deploy content types between different environments. Solution: Create a Visual Studio project to pack the content type as a feature based solution package (wsp). Lets pack the Content Type "Crescent Travel Request" with Few Columns & Form Template. Here is the step by step guide on Creating Visual Studio Solution for Content Types in SharePoint 2010:   Create a Visual Studio Project To Package Content Type as a Feature based solution: 1. Create a New Visual Studio 2010 Project of "Empty SharePoint Project" Type, Give it a name, say: "Crescent.TravelRequest.CotentType" Make it as a Farm Soluti
Package and Delpoy Content Types as Feature Based Solutions in SharePoint 2010 Package and Delpoy Content Types as Feature Based Solutions in SharePoint 2010 Reviewed by Salaudeen Rajack on March 28, 2013 Rating: 5

How to Change Central Administration Port in SharePoint?

March 27, 2013    , , , , ,
Changing Central Administration Port in SharePoint isn't frequent task, but you may have to do it in some situations: Perhaps during SharePoint installation, Central Administration Web site may be established with a random port, and you want to change it now. It was assigned with a port number which is prone to cause port conflicts,  Some other programs (such as backup software) wants to use the port assigned to Central Admin  Your organization's IT Policy doesn't allow to host the site on the particular port, etc. Anyway, If you want to change central administration port number in SharePoint 2010, there is no web interface available! But we have these methods to change port of central administration: The simplest way to accomplish this is by using the PowerShell cmdlet To change central administration port in SharePoint 2010 or in SharePoint 2013, use the PowerShell cmdlet: Set-SPCentralAdministration Set-SPCentralAdministration -port <Port Number> The
How to Change Central Administration Port in SharePoint? How to Change Central Administration Port in SharePoint? Reviewed by Salaudeen Rajack on March 27, 2013 Rating: 5

Set SharePoint Search Settings (Search Center URL, Scope Dropdown Mode) Programmatically

March 26, 2013    , , , ,
After migrating SharePoint 2007 sites to SharePoint 2010, we decided to set search center URL to a Enterprise Search center site and scope settings Dropdown mode to use "Show scopes dropdown" for all site collections. To update search center and search scope dropdown settings in SharePoint sites, We used to go: Site Actions >> Site Settings  Click on "Search Settings" under "Site collection Administration" Set search center URL and search scope dropdown Update SharePoint Search Settings Programmatically: Alright, How about new site collections which we are going to create down the line? Well, We used this code in a feature stapler to programmatically set SharePoint search center URL: //Read Search Center URL value from Feature.xml if (properties.Feature.Properties["SearchCenterURL"] != null) { string searchCenterURL = properties.Feature.Properties["SearchCenterURL"].Value; //Set the
Set SharePoint Search Settings (Search Center URL, Scope Dropdown Mode) Programmatically Set SharePoint Search Settings (Search Center URL, Scope Dropdown Mode) Programmatically Reviewed by Salaudeen Rajack on March 26, 2013 Rating: 5

Configuring BLOB Cache in SharePoint

March 26, 2013    , , , , , ,
What is BLOB: BLOB means B inary L arge Ob ject and refers any binary format file that is stored as a single entity  and not converted to text. Usually, BLOB files are of type images, audio/video files. What is BLOB Cache: When BLOB types of files are uploaded to a SharePoint site (E.g. Images, CSS, Scripts on a pages), they are stored inside the SQL Server content databases in BLOB data fields. When users request for these files for the first time, SharePoint retrieves them from database, stores the copies in WFEs and from next time, it serves those files from WFEs instead going back to database. So, enabling the SharePoint BLOB cache will improve the performance of your sites and reduce the load on your database servers. What benefit We'll Get by Enabling BLOB Cache in SharePoint? A file retrieved from Web Front End's File System is much faster, compared with when it retrieved from the database! It helps to improve performance by decreasing the number of requests from
Configuring BLOB Cache in SharePoint Configuring BLOB Cache in SharePoint Reviewed by Salaudeen Rajack on March 26, 2013 Rating: 5

Export-Import Site Columns in SharePoint using PowerShell

March 25, 2013    , , ,
Its a frequent requirement to copy site columns between SharePoint environments, isn't it? Today had a requirement to copy bunch of site columns from development environment to staging environment. We used to package site columns as a WSP Solution package in such requirements: Create Site Column Feature for SharePoint 2010 ,This time, Lets use PowerShell to Export and Import Site Columns! PowerShell Script to Export Site columns: #Get the Source Web $sourceWeb = Get-SPWeb "http://dev.crescent.com" #Create a XML File to Export Fields $xmlFile = "C:\SiteColumns.xml" New-Item $xmlFile -type file -force #Wrap Field Schema XML inside <Fields> Element Add-Content $xmlFile "`n<Fields>" #Export All Site Columns of specific Group to XML file $sourceWeb.Fields | ForEach-Object { if ($_.Group -eq "Crescent Travel Request") { Add-Content $xmlFile $_.SchemaXml } }
Export-Import Site Columns in SharePoint using PowerShell Export-Import Site Columns in SharePoint using PowerShell Reviewed by Salaudeen Rajack on March 25, 2013 Rating: 5

Clicking Document Type Icon does not open document, Selects the Row Instead

March 24, 2013    , ,
Issue: SharePoint 2010 clicking type icon does not open document! Clicking Type Icon Selects the Row Instead of Opening the Document!! Fix: Its a known issue! Microsoft released a KB article: http://support.microsoft.com/kb/2457975 In short: Copy Paste the below code as a file named: "fldtypes_docicon.xsl" and save it under 14 Hive folder of all WFEs:  \14\template\layouts\XSL\  and do an IISReset! <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxsl ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint="M
Clicking Document Type Icon does not open document, Selects the Row Instead Clicking Document Type Icon does not open document, Selects the Row Instead Reviewed by Salaudeen Rajack on March 24, 2013 Rating: 5

SharePoint 2010 Content Editor Web Part Hidden property is Disabled

March 20, 2013    , , ,
Found a interesting issue today. Wanted to place some CSS code in Content Editor Web Part (CEWP) and hide it, so that it won't appear to end-users. I added a content editor web part, Placed some CSS code, went to web part properties, oops! Hidden property under Layout is disabled (greyed out)!! SharePoint web part hidden disabled Cause: For some reasons, SharePoint doesn't allow us to hide web parts on publishing pages! So Content Editor Web Part's Layout hidden property is disabled!! Workaround: Here is the workaround to fix SharePoint 2010 web part hidden grayed out: Just Append  ToolPaneView=2 to the URL to open the page in Edit mode. E.g. http://sharepoint.crescent.com/sitepages/home.aspx? ToolPaneView=2 This opens Add Web Parts Pane, from there we can add new CEWP to bottom zone of the page (Verified in SharePoint 2010 web part hidden property is not greyed out this time!) and  hide the web part with out any issue! 
SharePoint 2010 Content Editor Web Part Hidden property is Disabled SharePoint 2010 Content Editor Web Part Hidden property is Disabled Reviewed by Salaudeen Rajack on March 20, 2013 Rating: 5

"There has been an error creating the personal site. Contact your site administrator for more information" - SharePoint My Site Creation Error

March 20, 2013    , , ,
When end-user tries to create My sites by clicking "My Content" link for the first time, They encountered this error message: "There has been an error creating the personal site. Contact your site administrator for more information" Troubleshooting: 1. Make sure User Profile Service Application & My Sites configuration is proper. Verify My Site Host Web Application is created with a Top level site collection of "My Site Host" Site Template. 2. Make sure Self Service Site creation is enabled for My site Host web application. Go to: Central Administration >> Application Management >> Manage Web Applications >> Select the My Site Host Web Application >> Click on "Self-Service Site Creation" from Ribbon >> Set it to "On". Otherwise, you will receive this error: " Your personal site cannot be created because Self-Service Site Creation is not enabled. Contact your site administrator for mor
"There has been an error creating the personal site. Contact your site administrator for more information" - SharePoint My Site Creation Error "There has been an error creating the personal site. Contact your site administrator for more information" - SharePoint My Site Creation Error Reviewed by Salaudeen Rajack on March 20, 2013 Rating: 5

Show Quick Launch in SharePoint 2010 Web Part Pages

March 18, 2013    , , , ,
By default, SharePoint 2010 Web part pages don't have quick launch navigation! Web part page missing quick launch in SharePoint 2010.  show quick launch in SharePoint web part page Show quick launch SharePoint 2010 web part page: We can bring it by editing web part page. Just Edit the webpart page in the SharePoint Designer 2010 Advanced mode and remove the following code (As same in SharePoint 2007): <asp:Content ContentPlaceHolderId="PlaceHolderNavSpacer" runat="server"></asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"></asp:Content> In SharePoint 2010 you have to also remove the following CSS code: <style type="text/css"> body #s4-leftpanel { display:none; } .s4-ca { margin-left:0px; } </style> Save the page! This will bring Quick launch bar again!! Here is the result: quick launch on SharePoint 2010 web part page. This solves the issue
Show Quick Launch in SharePoint 2010 Web Part Pages Show Quick Launch in SharePoint 2010 Web Part Pages Reviewed by Salaudeen Rajack on March 18, 2013 Rating: 5

How to Connect to a Specific Web Front End Server in SharePoint Farm?

March 16, 2013    , ,
A typical SharePoint farm may contain more than one web front end servers - load balanced. When you hit the SharePoint site URL, say: http://portal.crescent.com , it hits the load balancer first. Load balancer decides to which web front end server this request needs to be transferred based on server load and other load balancing algorithms. Here is a nifty trick to hit specific WFE, bypassing load balancer in SharePoint farm. Connect to a Specific WFE Server in SharePoint with HOST file Edit: Go to "C:\WINDOWS\system32\drivers\etc" in your local machine Open the "HOST" file in notepad. Add an entry at the end of the file with: WFE IP and SharePoint site's Host header.  E.g. 10.129.150.25 extranet.crescent.com Save and close the file. Clear your browser cache and reopen the site. Now you should get responses from the specified web front end server. BTW, Web Front End Server (WFE) is the one with IIS Web sites running. Add a Binding to SharePoint
How to Connect to a Specific Web Front End Server in SharePoint Farm? How to Connect to a Specific Web Front End Server in SharePoint Farm? Reviewed by Salaudeen Rajack on March 16, 2013 Rating: 5

Add a User to Owner Group of All SharePoint Sites using PowerShell

March 16, 2013    , , , ,
Requirement: Add user to Owner Group of All SharePoint site collections using PowerShell! We've site collections grouped by managed paths such as "Teams", "Projects". Got a requirement to add a user to Owner/Members group of all sites under a particular managed path. How to Add a User to Owner/Member Group in SharePoint ? Adding a user to any SharePoint group is quite simple. Login as a Site owner, Open the SharePoint site and: Click on "Site Settings Gear" Icon from SharePoint site Click on "People and Groups" link under Users and Permissions Pick the Relevant group from Left navigation Click on "New" and choose "Add Users" Enter the Name of the user, Optionally select "Send an email invitation" checkbox and click on "Share" button. PowerShell to add a user to SharePoint Owner Group: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Site path Variable $SitesP
Add a User to Owner Group of All SharePoint Sites using PowerShell Add a User to Owner Group of All SharePoint Sites using PowerShell Reviewed by Salaudeen Rajack on March 16, 2013 Rating: 5

Create Web Application in SharePoint 2013 using PowerShell

March 15, 2013    , , , , ,
A web application in SharePoint acts as a container for one or more site collections. Web applications provide the link to the corresponding web site in IIS and to specific content databases in SQL Server for the storage of site collections and associated content. How to Create a Web Application in SharePoint? To Create new web application in SharePoint 2013, head on to SharePoint 2013 Central Administration site. Navigate to: Application Management >> Manage web applications Click on "New" button from the ribbon Fill-out the details for your new web application. Such as: Web and click on "Create" to create a web application in SharePoint 2013. Create Web Application in SharePoint 2013 using PowerShell: Lets create a SharePoint web application using PowerShell. Here is my PowerShell script to create web application in SharePoint 2013: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Define Variables for Web Application
Create Web Application in SharePoint 2013 using PowerShell Create Web Application in SharePoint 2013 using PowerShell Reviewed by Salaudeen Rajack on March 15, 2013 Rating: 5

Remove All Users from SharePoint Group using PowerShell

March 14, 2013    , , , , , ,
Requirement: SharePoint Remove all users from group SharePoint PowerShell to remove all users from group: PowerShell script to remove all user from a SharePoint group programmatically: Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue #Site collection URL $SiteUrl="http://intranet.crescent.com/sites/operations" $GroupName = "Operation Managers" #get the Root Web $web = Get-SPWeb $SiteUrl #Get the Group $Group = $Web.sitegroups | Where-Object {$_.Name -eq $GroupName} If($Group -ne $null) { $GroupUsers = $Group.Users foreach ($User in $GroupUsers) { #powershell to remove all users from sharepoint group $Group.RemoveUser($User) write-host "Removed User from Group:" $User } } else { write-host "Group doesn't Exists!" -f yellow }
Remove All Users from SharePoint Group using PowerShell Remove All Users from SharePoint Group using PowerShell Reviewed by Salaudeen Rajack on March 14, 2013 Rating: 5

How to Edit SharePoint Survey "All Responses" View?

March 13, 2013    , ,
By default, SharePoint Survey's "All Responses" view shows "View Response", "Created By", "Modified", "Completed" columns. There was a requirement to add one of the Survey answer to the view for easier categorization and filter. Unfortunately, There is no direct provision to edit Survey views as we edit any other list/library's view. Typical, any edit view page goes like this: http://sharepoint-site/_layouts/ViewEdit.aspx?List={GUID OF THE LIST}&View={GUID OF THE VIEW} So, What we need? Just List ID & View ID. That's it! How to Get List GUID: To Get Survey List ID: Go to "Settings >> Survey Settings" from List toolbar. Now, Right click any of the settings links, such as: Rating Settings or Validation Settings , etc and select "copy Shortcut" to Get the List ID. You will something similar to: http://sharepoint.crescent.com/_layouts/RatingsSettings.aspx?List= {502aa2ee-8127-4929-ba58
How to Edit SharePoint Survey "All Responses" View? How to Edit SharePoint Survey "All Responses" View? Reviewed by Salaudeen Rajack on March 13, 2013 Rating: 5

Create a Scheduled Task for PowerShell Script with Windows Task Scheduler

March 12, 2013    , , ,
PowerShell is really a game changer for repeatable processes, isn't it? We've a PowerShell script to generate report on SharePoint content databases size growth SharePoint Content Databases Size - Storage Report , We used to run it on first day of every Month on SharePoint server to generate report. Why don't we automate it with Windows Task scheduler? Sure! Lets create a scheduled task for PowerShell script with Windows task scheduler in Windows Server 2008/2012 R2. How to schedule a PowerShell script using Windows task scheduler? How to Create a Scheduled Task for PowerShell Script with Windows Task Scheduler Here is how you can create Scheduled Tasks manually: 1. Start >> Administrative Tools >> Task Scheduler.  From Actions menu click on "Create a Basic Task" 2. Give it a Name & Description Say: Content Databases Report, and click "Next"   3. Select the interval you want to run the program. In my case, I chose "M
Create a Scheduled Task for PowerShell Script with Windows Task Scheduler Create a Scheduled Task for PowerShell Script with Windows Task Scheduler Reviewed by Salaudeen Rajack on March 12, 2013 Rating: 5
Powered by Blogger.