Category Archives: SharePoint 2010

Moving SharePoint 2010 Log and Index Locations

There are two hard-drive locations on a SharePoint server (with enabled search indexing) that are in constant use and often require significant space – log files and index files folders.

Log files location can be easily specified in Central Administration: Monitoring – Configure Diagnostic Logging.
In the Diagnostic Logging screen, you can specify a new path for trace log files and change other settings, such as how long to keep trace files, and what sort of information will be logged there.

Index files location, unfortunately, is not available through Central Administration. It is typically specified during SharePoint installation phase, along with the software installation folder. However, there is a way to change it through stsadm command:
stsadm -o spsearch -indexlocation “d:\SharePoint\Data”

You can verify that it changed successfully by running the following command before and after changing the index:


Configure diagnostic logging (SharePoint Server 2010)

Changing Index locations in SharePoint 2010


CA > Application Management > Manage service applications > Search Service Application > Search Application Topology (Modify) > Index Partition/Query Component (Edit Properties). Repeat for each query component within your farm.

Unfortunately, all the stand-alone deployments and foundation editions would still have to go through aforementioned stsadm command. Below is an illustration of Search Service Application and its missing modify option for a stand-alone installation of enterprise SP2010 server, running on my laptop.


How To: Get a list of site owners for all SharePoint sites

Here is something you may need to verify your users have the access they require: a PowerShell script which will run through all of the site collections and webs and display the list of site owners (people who belong to a Owner group).

Something like this:

Basically you save the code below as a ps1 script and run it in SharePoint Management Shell.
If the output is too long, pipe it to file by using >> c:\output.txt in the command line calling the script.

function IterateSubSites ([Microsoft.SharePoint.SPWeb]$subSite)
if ($subSite -ne $null)
if($subSite.Webs -ne $null)
foreach($subsites in $subSite.Webs)

$webApplicationURL = "http://localhost"
$webApp = Get-SPWebApplication $webApplicationURL

foreach($site in $webApp.Sites)
foreach($subWeb in $site.AllWebs)
Write-Host $subWeb.Url
foreach($group in $subWeb.Groups)
if($group.Name -like "*Owners*")
Write-Host "Owner(s): "
foreach($user in $group.Users)
{Write-Host $user.Name "; "; }
if($subWeb.IsRootWeb -ne $true)

Good to know–Layout Pages in SharePoint 2010

These links may be created as shortcuts via buttons or simply kept FYI.  It certainly helps having direct links to certain things as it saves time vs. clicking through the entire interface.

_layouts/user.aspx – manage users for site


_layouts/settings.aspx – site settings


?contents=1  – what web parts are open on the page?  Example http://intranet/pages/default.aspx?contents=1


_layouts/create.aspx – page to create content.  This is especially useful if you have a funky problem with Silverlight.


_Layouts/AreaWelcomePage.aspx – Welcome page settings


_layout/addgallery.aspx – direct link to Silverlight creation page.


_admin/CNTDBADM.aspx – manage content databases.  This link needs to be executed in the central administration web application.


_layouts/viewscopes – view search scopes.  This link needs to be executed in the central administration web application.


/_catalogs/users/simple.aspx – User information list for all users in SharePoint.  Especially useful when you have funnies in user info. Delete the user from this list, re-add them to SharePoint and most of the issues should be resolved.


Generalapplicationsettings.aspx – Central Administration – General application settings.  Obviously also to be executed in the central administration web application.


_admin/ServiceApplications.aspx – Central Administration – Service Application settings.  Also to be executed in the central administration web application.


_layouts/storman.aspx – Storage metrics for your SharePoint site.

8 Easy Ways to Change SharePoint for Work

2012-07-11-8EasyWays-01.jpgFrequently, I receive requests along the lines of What can SharePoint do and how can it work for me? With endless possibilities and boundless optimism, SharePoint obviously has a great deal more to offer and the manner in which it is implemented and governed. You will also find a mountain of articles and how to guides on the internet but my responses almost always touch on the following areas.

In this post I will share 8 easy ways that by themselves may not dramatically improve productivity, but combined can result in significant performance gains and hopefully help you leverage SharePoint functionality.

1. Lightening Lists

Swapping pinned-up paper lists in your work area with SharePoint lists can increase efficiency.
Tip: use out of the box available contact, task and custom list templates.

More Info:

2. Fantastic Forms

Converting paper based forms to electronic form will save time and effort.
Tip: use MS Office InfoPath to design forms or convert Word, Excel or PDF to integrated an SharePoint Form for quick distribution.

More Info:

3. Amazing Alerts

Subscribing to many SharePoint libraries and lists via email or RSS feeds will help you access up to date information at the right time.
Tip: categorise the importance of your access to the information and choose immediate, daily or weekly alerting.

More Info:

4. Categorising Content

We all know that too much content is hard to consume but its not easy to tell where its located.
Tip: using content types such as meeting minutes, project documents, issues, department reports will improve navigation and search.

More Info:

5. Discovering Data

Chances are that your organisation has key corporate data such as HR, Finance and Service Management. Integrating SharePoint lists with these datasets will guide you to better insights and reusability of your organisation’s data.
Tip: use Business Connectivity Service to configure external lists and external content types with your libraries, lists and reports.

More Info:

6. Wizardry Workflow

For your site content (libraries or lists) It is easier than you think to configure task based approval within a browser.
Tip: use document approval and task allocation workflows to handle information effectively.

More Info:

7. Visible View

Your SharePoint library or list may have many items forcing you to scroll down and navigate number of pages resulting in loss of time and staring longer on screen.
Tip: use views to display data with your choice of selected columns, filters, sorting, grouping and item limits.

More Info:

8. Web Widgets

Adding web parts to pages in SharePoint sites will enable new functionality while keeping the pages lively and relevant.
Tip: access the web part gallery consisting of site content areas, personalisation, business data, content aggregator and filters.

More Info: